My memory could be off on this, but if I recall, initial-value
doesn't work quite like you'd expect it to.

        It does not "set" the value every time the page is pulled out of
pool. Rather it sets the value once, when the page is created. If you then
subsequently change that value, and then put the page back in pool, it
doesn't re-initialize. So if you're looking to make sure a property gets
initialized for every page is probably the initialize() method which will
set it before it goes back into pool so it'll be set properly the next time
you take it out.

        --- Pat

> -----Original Message-----
> From: jys [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 06, 2005 8:47 AM
> To: Tapestry users
> Subject: Re: initial-value attribute in property-specification -- help
> 
> I think initial-value can be set with any valid ognl expression like :
> 
> new java.util.HashSet()
> 
> for example
> 
> hari ks wrote:
> 
> >hi,
> >  I want to know if initial-value="" is required to be
> >initialize all time.
> >When do we use initial-value attribute. is it for
> >custom-defined user classes/primitive types/standard
> >java classes(String, Integer etc..) ?
> >
> >Also how does is it work differently when used with
> >persistent="no" and persistent="yes"
> >
> >thanks,
> >Hari.
> >
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Tired of spam?  Yahoo! Mail has the best spam protection around
> >http://mail.yahoo.com
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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

Reply via email to