You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Michael Wong <mi...@gmail.com> on 2008/08/11 04:24:13 UTC

t5 newbie's question: how to understand onActivate?

I'm trying to learn Tapestry 5, here is my question:

what onActivate does? say:

public void onActivate() {

}

Does this onActivate corresponding to the servlet's request and response?
when the url for the page class is called, onActivate is called for the
'request' part, then since it return 'void', the 'response' is also
called(that's the rendering of the class + template process?)


-- 
View this message in context: http://www.nabble.com/t5-newbie%27s-question%EF%BC%9A-how-to-understand-onActivate--tp18919281p18919281.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: t5 newbie's question: how to understand onActivate?

Posted by Chris Lewis <ch...@bellsouth.net>.
Michael,

Pages and their lifecycle methods in no way correspond to how a servlet
is structured. If you haven't gone all the way through the first
tutorial, start there and digest every bit of it. After that you will
have a general idea of T5's perspective on a how a web app works, and
you should be ready to dig in a bit deeper into how pages are handled:

http://tapestry.apache.org/tapestry5/guide/pagenav.html
http://tapestry.apache.org/tapestry5/guide/lifecycle.html

I strongly urge you to take a few hours, forget the word "servlet," I
and take in the T5 perspective.

sincerely,
chris

Michael Wong wrote:
> I'm trying to learn Tapestry 5, here is my question:
>
> what onActivate does? say:
>
> public void onActivate() {
>
> }
>
> Does this onActivate corresponding to the servlet's request and response?
> when the url for the page class is called, onActivate is called for the
> 'request' part, then since it return 'void', the 'response' is also
> called(that's the rendering of the class + template process?)
>
>
>   

-- 
http://thegodcode.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org