You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mite <mi...@gmail.com> on 2009/10/26 13:34:37 UTC
Return type
A beginner question. A short answer will be enough.
What is the difference between returning a .class and an object from the
same class, by a method handler?
Thank you,
Mite
--
View this message in context: http://www.nabble.com/Return-type-tp26058940p26058940.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: Return type
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Mon, 26 Oct 2009 10:34:37 -0200, Mite <mi...@gmail.com> escreveu:
> A beginner question. A short answer will be enough.
> What is the difference between returning a .class and an object from the
> same class, by a method handler?
None. :)
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Return type
Posted by Mite <mi...@gmail.com>.
Thanks for the answers. :)
--
View this message in context: http://www.nabble.com/Return-type-tp26058940p26059228.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: Return type
Posted by cordenier christophe <ch...@gmail.com>.
Thanks Thiago, my response was to quick :)
2009/10/26 Thiago H. de Paula Figueiredo <th...@gmail.com>
> Em Mon, 26 Oct 2009 10:39:05 -0200, cordenier christophe <
> christophe.cordenier@gmail.com> escreveu:
>
> Hi
>>
>
> Hi!
>
> The difference is that you will be able to call accessors on the object
>> that will allow to persist datas between request.
>> Use @Persist on persisted properties for the target page.
>>
>
> Or properties that are populated from activation context values. In this
> case, don't forget to add an onPassivate() method that returns the
> activation context value. This way, you avoid using the session.
>
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Return type
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Mon, 26 Oct 2009 10:39:05 -0200, cordenier christophe
<ch...@gmail.com> escreveu:
> Hi
Hi!
> The difference is that you will be able to call accessors on the object
> that will allow to persist datas between request.
> Use @Persist on persisted properties for the target page.
Or properties that are populated from activation context values. In this
case, don't forget to add an onPassivate() method that returns the
activation context value. This way, you avoid using the session.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Return type
Posted by cordenier christophe <ch...@gmail.com>.
Hi
The difference is that you will be able to call accessors on the object that
will allow to persist datas between request.
Use @Persist on persisted properties for the target page.
Regards,
Christophe.
2009/10/26 Mite <mi...@gmail.com>
>
> A beginner question. A short answer will be enough.
>
> What is the difference between returning a .class and an object from the
> same class, by a method handler?
>
> Thank you,
> Mite
> --
> View this message in context:
> http://www.nabble.com/Return-type-tp26058940p26058940.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
>
>