Well, in the life cycle guide, it is said it could be used for
initializations or caching.
Actually, I have confirmed it could do that, but just it doesn't work to
retrieve and mutate persistent variables.
Cheers,
Jeffrey Ai
Michael Courcy wrote:
>
> I may be wrong as I'm a tapestry newbie, bu
Thanks Lasitha.
I did a search later of all guide. It's only mentioned in the page
navigation guide.
I still think it should be mentioned in the life cycle guide.
I think that's the first place for developers to look for that information.
Cheers,
Jeffrey Ai
lasitha wrote:
>
> On Nov 20, 2007 4:
No Carlos. Actually, you reminded me. The original message title is without
T5. I added it later after reading your message.
Thanks,
Jeffrey Ai
carlos f wrote:
>
>
>
> carlos f wrote:
>>
>> If you are using tap 4.x . . .
>>
>
> Maybe if I looked at the subject of the original message I wo
carlos f wrote:
>
> If you are using tap 4.x . . .
>
Maybe if I looked at the subject of the original message I would have seen
the "T5" staring at me ;)
Carlos
--
View this message in context:
http://www.nabble.com/T5%3A-How-to-initialize-a-session-variable-in-a-page-render-request--tf483
I may be wrong as I'm a tapestry newbie, but pageAttached is something
related to the compilation and pooling of the page template. Thus it
should not deal with session buisness.
jeffrey ai a écrit :
Hi Folks,
I am looking for the best way to initialize a session variable(@Persist) in
a page
On Nov 20, 2007 4:54 AM, jeffrey ai <[EMAIL PROTECTED]> wrote:
>
> onActivate() solve the problem. I thought this method only get called for an
> action request, not for a page render request.
> Apparently, I am wrong. I think it should be documented at the following
> "Page Lifecycle" guide.
> htt
Thanks, Josh.
onActivate() solve the problem. I thought this method only get called for an
action request, not for a page render request.
Apparently, I am wrong. I think it should be documented at the following
"Page Lifecycle" guide.
http://tapestry.apache.org/tapestry5/tapestry-core/guide/lifecy
jeffrey ai wrote:
>
> I am looking for the best way to initialize a session variable(@Persist)
> in a page render request once, so I could access it in the next action
> request.
>
Jeffrey,
I am not sure about the particulars of your situation. If you are using tap
4.x, you might want to lo
>
> I am looking for the best way to initialize a session variable(@Persist)
> in
> a page render request once, so I could access it in the next action
> request.
>
>
I can't tell you why pageAttached doesn't work (haven't tried it) but you
can use onActivate, or if it's for a form onPrepare.
Josh