Hi, Sorry for not making it clear, here is a simple sample, my question is, why the countryList instantiated in the pageLoaded persist without a need to use @Persist? maybe what assigned in the pageLoaded are considered as default value like constructor? Thanks, A.C.
public class Search { private Map<String, String> countryList; public Map<String, String> getCountryList() { return countryList; } void pageLoaded() { countryList = new TreeMap<String, String>(); countryList.put("US", "USA"); countryList.put("HK", "Hong Kong"); } } Davor Hrg wrote: > > please post some more code, > I'm also unable to comprehend what the problem is ? > > Davor Hrg > > On Dec 2, 2007 5:08 PM, 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] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/T5%3A-Map-and-persistency-tf4931665.html#a14116894 >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/T5%3A-Map-and-persistency-tf4931665.html#a14120628 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]