Hi Angelo,

pageLoaded is only executed when the page is first instantiated and configured.

I think you might want to use pageAttached instead, which is executed every time the page is attached to a new request.

http://tapestry.apache.org/tapestry5/tapestry-core/guide/lifecycle.html

-Filip

Angelo Chen skrev:
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.

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

Reply via email to