That's a different problem altogether.  You're not conditionally calling the
method, so it would have nothing to do with a cached value.  It has to do
with the page lifecycle events.  It would appear as though you do not want
to be using pageLoaded().

See http://tapestry.apache.org/tapestry5/tapestry-core/guide/lifecycle.html
for more details.



On 12/2/07 11:08 AM, in article [EMAIL PROTECTED], "Angelo Chen"
<[EMAIL PROTECTED]> wrote:

> 
> no, the getCountryList is a service that I put a log, the log displays that
> the method was called only once.
> 
> 
> nirvdrum wrote:
>> 
>> Are you sure it's persisted and not just repopulated by the time you check
>> it?
>> 
>> 
>> On 12/2/07 8:34 AM, in article [EMAIL PROTECTED], "Angelo
>> Chen"
>> <[EMAIL PROTECTED]> wrote:
>> 
>>> 
>>> Hi,
>>> 
>>> One thing confuses me, here is a sample code:
>>> 
>>>  private Map<String, String> countryList;
>>> 
>>>  @Inject private DBServices dbServices;
>>> 
>>>   void pageLoaded() {
>>>         countryList = dbServices.getCountryList();
>>> 
>>> without any Persist annotation, the countryList is persisted between
>>> requests. if I move the above line to the constructor of the page class,
>>> it
>>> has the same result. why?
>>> 
>>> A.C.
>> 
>> -- 
>> Kevin Menard
>> Servprise International, Inc.
>> Remote reboot & power control for network equipment
>> www.servprise.com              +1 508.892.3823 x308
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 

-- 
Kevin Menard
Servprise International, Inc.
Remote reboot & power control for network equipment
www.servprise.com              +1 508.892.3823 x308



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

Reply via email to