[Seaside] Brush or Component?

Esteban A. Maringolo emaringolo at gmail.com
Wed Jan 30 11:02:32 UTC 2008

On Jan 28, 2008 4:05 PM, Philippe Marschall
<philippe.marschall at gmail.com> wrote:
> 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.

Actually, it is one element someway. It is an element (textinput) and
a button/image which triggers the javascript.

After trying different approaches, now the brush approach seems to be
the best, because it can be used by separate, or for a customized
magritte editor component.


Esteban A. Maringolo
eMaringolo at gmail.com

More information about the seaside mailing list