You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by luna_guo <gh...@163.com> on 2008/04/25 04:08:09 UTC
where does onActivate method's pramameter come from?
i have the following code:
int onPassivate(){
System.out.println("passivate is running");
return 3;
}
void onActivate(int a){
System.out.println("onActivate:"+a);
}
void onActivate(){
System.out.println("onActivate");
}
i get the debug information:
onActivate:3
onActivate
return a object page
passivate is running
after that is a redirect response
onActivate is running before onPassivate,so where is the parameter '3' come
from?
i click a actionLink with context of a number,not 3.
--
View this message in context: http://www.nabble.com/where-does-onActivate-method%27s-pramameter-come-from--tp16882004p16882004.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: where does onActivate method's pramameter come from?
Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
Hi,
Please see
http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html.
-Filip
On 2008-04-25 04:08, luna_guo wrote:
> i have the following code:
> int onPassivate(){
> System.out.println("passivate is running");
> return 3;
>
> }
> void onActivate(int a){
> System.out.println("onActivate:"+a);
> }
> void onActivate(){
> System.out.println("onActivate");
> }
> i get the debug information:
>
> onActivate:3
> onActivate
> return a object page
> passivate is running
>
> after that is a redirect response
> onActivate is running before onPassivate,so where is the parameter '3' come
> from?
> i click a actionLink with context of a number,not 3.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org