[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: Re: Initializing Persistent Property of a component
From: Kent Tong <kent () cpttm ! org ! mo>
Date: 2005-04-29 8:09:38
Message-ID: loom.20050429T093140-569 () post ! gmane ! org
[Download RAW message or body]
Kiran Meduri <mkktapestry <at> gmail.com> writes:
> I have to initialize
> this list using a function which takes arguments as a value of a
> parameter of the component which is bound to a persistent property of
> the page (via the parent component parameter).
> <parameter name="objA" direction="in" required="yes" type="A"/>
>
> <property-specification name="list" type="java.util.List"
> persistent="yes" initial-value="new java.util.ArrayList()">
> </property-specification>
Try overriding the prepareForRender() method in your view component.
void prepareForRender(IRequestCycle cycle) {
super.prepareForRender(cycle);
initializeList();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic