tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Sampaleanu <colin...@exis.com>
Subject Re: Property initializers
Date Mon, 05 Jan 2004 22:49:43 GMT
Personally, it surprised me the first time I figured out it only ran 
once. I would consider it a 'bug'...

Mindbridge wrote:

>I am about to check in the docs and examples I was talking about, but came across something
>The properties defined in the component specifications via <property-specification>
can be initialized using the 'initial-value' parameter. This parameter is an OGNL expression
that (at the moment) is evaluated once during the creation of the component, the value is
stored, and is later used as an initialization value whenever necessary.
>Shouldn't the 'initial-value' expression be evaluated every time it is needed for initialization
instead (if not invariant, of course)? 
>This latter approach allows a number of uses that the former one does not (e.g. initializing
to something that depends on the bindings), and perhaps it is more natural to the users. 
>Should this be considered a bug? Should it be changed? (this is backward compatible if
the initial-value parameter is used as designed at the moment). 

To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org

View raw message