« Return to Thread: WebElement and WebComponent

Re: WebElement and WebComponent

by Janko Mivsek :: Rate this Message:

Reply to Author | View in Thread

Nicolas Petton 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)

Agree. Also comment all that methods well to help implementers better
extending them. Also don't forget on Ajax registration for the #build
method in initialize.

Janko




>
> printHTMLPageOn: aStream forSession: aSession
>
> self build.
> ^super printHTMLPageOn: aStream forSession: aSession.
>
> Won't be necessary.
>
> What do you think ?
>
> Nico
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Aida mailing list
> Aida@...
> http://lists.aidaweb.si/mailman/listinfo/aida

--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
Aida@...
http://lists.aidaweb.si/mailman/listinfo/aida

 « Return to Thread: WebElement and WebComponent