Yes, this is the explicit, documented, behavior for @InitialValue.

If you want to use a simpler value, you can set the properties initial
value to a constant inside finishLoad().  In that case, the value you
provide is retained and re-applied at the end of the request.  With
@InitialValue, the binding expression is re-evaluated and applied at
the end of the request.

On 1/27/06, Schulte Marcus <[EMAIL PROTECTED]> wrote:
> I've just found, to my surprise, that a property annotated with
> @Persist + @InitialValue("someMethod()") in T4 get's re-initialised on every
> request. Is this the expected behaviour? Are those annotations not meant to
> be used together (the docs indicate that they _can_ be used together)? I was
> somehow thinking that the initialvalue would be set only on blank (null)
> props.
> Or am I simply ready for the weekend ;) ?
> somewhat stymied,
> Marcus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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

Reply via email to