You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by jiju <ji...@ibsplc.com> on 2007/01/19 05:01:35 UTC
Difference between @InjectState & @Persist
Hi All,
can you explain whats the difference if we are saving a page property as ASO
with scope="session"
and
if we are saving a page property using @Persist in our basepage and
extending this basepage where ever it is required.
secondly i have noticed that if am setting an @Persist property in
pageAttached(); event, then it is not saving in session scope. what could be
the reason ?
--
View this message in context: http://www.nabble.com/Difference-between-%40InjectState---%40Persist-tf3038222.html#a8443958
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: Difference between @InjectState & @Persist
Posted by RonPiterman <rp...@gmx.net>.
while state objects are shared between all pages / components,
persistant properties are only accessed by the page / component which
declares them.
Cheers,
Ron
jiju wrote:
> Hi All,
> can you explain whats the difference if we are saving a page property as ASO
> with scope="session"
> and
> if we are saving a page property using @Persist in our basepage and
> extending this basepage where ever it is required.
>
>
> secondly i have noticed that if am setting an @Persist property in
> pageAttached(); event, then it is not saving in session scope. what could be
> the reason ?
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org