[Seaside] WAComponent children
Milan Mimica
milan.mimica at gmail.com
Wed Apr 13 20:45:53 UTC 2011
Julian Fitzell wrote:
> Hi Milan,
>
> Components are supposed to be stateful and so are expected to live
> longer than a single request. As such, you don't normally create them
> without storing them somewhere or calling them. If you are doing this,
> you might consider subclassing WAPainter instead.
You got that right, the components I'm working with right now are stateless and
are not supposed to remember anything between requests. That's why I didn't feel
I need to keep their instances and had a feeling I was doing something wrong.
Perheps they should indeed inherit from WAPainter.
--
Milan Mimica
http://sparklet.sf.net
More information about the seaside
mailing list