[Seaside] Brush or Component?

Philippe Marschall philippe.marschall at gmail.com
Mon Jan 28 19:05:53 UTC 2008

2008/1/28, Esteban A. Maringolo <emaringolo at gmail.com>:
> Hi,
> I'm planning to wrap a date picker
> (http://www.dynarch.com/projects/calendar/), what is the best approach
> I should take?
> Use it as a brush, make it a full featured component, or use both?
> Is it possible to automatically reference the required css/js when
> this wrapper is used, or must be defined explicitly in the containing
> component?

Depends on the markup. If it is only one html element a subclass of
WATextInputTag might be the way to go. If you have more than one html
element use a component.

The css has to be included in the root somehow. All the standard ways
are possible here altough doing it in #updateRoot: of your date picker
component (if you decided to go with a component) will probably
include it several times if you have the component multiple times on
the "page". You might want to avoid this.


> Best regards,
> --
> Esteban A. Maringolo
> eMaringolo at gmail.com
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list