[Seaside] Updating sub-components: where?

Martin J. Laubach mjl at laubach.at
Sun Feb 20 14:11:43 CET 2005


| >    Is there a method that is called before a page is being built? I want
| > to update the visual state of my component depending on some global
| > session state, possibly changing/adding some subcomponents.
| 
| As a general piece of advice, I've found that Seaside apps work much
| better when built with a pull model instead of push: for example,
| determine your current subcomponents on the fly based on the state of
| the world, rather than trying to keep a list constantly up to date. 

  I'm perfectly willing to accept a "you got your structuring wrong".
The current state of affairs certainly feels a bit kludgy, so I'll
put in some effort of making the display polling its current state
instead of precalculating it at the begin of the rendering.

  Thanks for the hint!

	mjl


More information about the Seaside mailing list