> When making it abstract getter/setter, will it do to
> set "initial-value" of <property-specification to the
> value that was set as class variables. I read
> somewhere that initial-value of property specification
> is set just before page is put back to pool. So feel
> that when class is instantiated, it will not have that
> initial-value.

That's correct. If you need to set property values or do any kind of
initialization *before* your page renders, implement PageAttachListener
interface. On the pageAttached() method, you can set your property values to
whatever you want.

If you're using Tapestry 3.0, there's no PageAttachListener -- instead, you can
implement PageRenderListener, and provide initialization on the
pageBeginRender() method.

-- Marcus Brito



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

Reply via email to