I'm trying to pass parameters from one page to another page using activation content, like this,
class Search{ ... @InjectPage private SearchResult result; Object onSuccess(){ result.setParas(keyword); return result; } ... } class SearchResult { ... String onPassivate(){return keyword;} void onActivate(String keyword){ System.out.println("id"+id); Data data=DataDao.findById(keyword); ... } } The problem: Under the debug mode, i found that OnActivate() method has been called for three times for the first time just after i started the Jetty server, after that onActivate() has been always called two times, and i used firefox firebug to check the response and found double response source of page "SearchResult", i'm pretty confused by this OnPassivate() and OnActivate() methods, somebody can explain why the OnActivate() has been called multiple times, i mean i passed only one parameter, OnActivate() method should be called only once, if this method will be called multiple times, how can i handle my logic in the page "SearchResult"? i.e., database access operation in OnActivate() method will also be called multiple times which is obvious unnecessary! Is it a bug or something? -- View this message in context: http://old.nabble.com/Multiple-calls-of-method-OnActivate%28%29----tp26453228p26453228.html Sent from the Tapestry - User mailing list archive at Nabble.com.