Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for 
change notification.

The following page has been changed by ErikVullings:
http://wiki.apache.org/tapestry/Gotchas

------------------------------------------------------------------------------
  = initialize() =
  initialize() is sometimes mistakenly used as the place to initialize 
properties of a page. Actually, initialize() is used to set properties to the 
state they should be in when returned to the pool--in other words, when you are 
done with the page (typically set properties to null). Instead, implement 
PageRenderListener and then initialize your properties in pageBeginRender().
  
+ = initial-value attribute of property-specification =
+ even the initial-value is the wrong place to initialize properties of a page 
with
+ client specific information. The value of initial-value has to be a global, 
client independant
+ value. This value will be seen by the next user that got this page from the 
page pool.
+ The initial-value attribute should only be used to set 'constant' values with 
a scope of all
+ users of the application.
+ As mentioned in the previous gotcha implement PageRenderListener and then 
initialize your properties in pageBeginRender() to any client-specific value.
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to