When a parameter is cached, it is cached for at most, the duration of
the component's render.  If the parameter is accessed when the
component is not rendering, or if the component is rendered multiple
times (due to an enclosing Loop), then the container component
property will be accessed multiple times.

On 4/8/07, Patrick Moore <[EMAIL PROTECTED]> wrote:
Hi there --

I am passing to a component's parameter the result of a containing
component's method. Now I was thinking that because of "cache=true" being
the default on @Parameter that  the container's method would only be called
once ... but this does  not seem to be the case. I am having the container's
method being called multiple times during a render operation.

Is this a bug or expected behaviour?

-Pat



--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache 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