[aida] WebElement and WebComponent

Janko Mivšek janko.mivsek at eranova.si
Sat Apr 19 14:37:18 CEST 2008


Rob Rothwell wrote:
> #build makes sense to me, as in "build the component out of it's 
> constituent WebElements."
> 
> Is that what you were thinking?

That's an intentions of #build method, yes. It is meant to build an 
object tree of a component, just as #viewMain do for a whole page.

Component can be namely built once only and then is "cached", or every 
time a page with that component is shown, or when Ajax refresh request 
comes. All three ways use the same #build method.

Janko


> 
> Rob
> 
> On Fri, Apr 18, 2008 at 5:18 PM, Nicolas Petton 
> <petton.nicolas na gmail.com <mailto:petton.nicolas na gmail.com>> wrote:
> 
>     For now, WebComponent is an empty subclass of WebElement.
>     To differentiate them, we should probably add some useful methods to
>     WebComponent.
> 
>     My idea is to override WebComponent class>>initialize to call a #build
>     method, then add an empty #build method. That way the trick (often used)
> 
>     printHTMLPageOn: aStream forSession: aSession
> 
>            self build.
>            ^super printHTMLPageOn: aStream forSession: aSession.
> 
>     Won't be necessary.
> 
>     What do you think ?
> 
>     Nico
>     --
>     Nicolas Petton
>     http://nico.bioskop.fr
>                ___
>              ooooooo
>             OOOOOOOOO
>            |Smalltalk|
>             OOOOOOOOO
>              ooooooo
>               \   /
>                [|]
>     --------------------------------
>     Ma clé PGP est disponible ici :
>     http://nico.bioskop.fr/pgp-key.html
> 
>     _______________________________________________
>     Aida mailing list
>     Aida na aidaweb.si <mailto:Aida na aidaweb.si>
>     http://lists.aidaweb.si/mailman/listinfo/aida
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Aida mailing list
> Aida na aidaweb.si
> http://lists.aidaweb.si/mailman/listinfo/aida

-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


More information about the Aida mailing list