You can just call :

public void pageBeginRender(PageEvent event) {
 event.getRequestCycle().isRewinding();
}

If you need to know if something "has rewound" after the fact I think the
only logical next question is "why" ?  It indicates that you are probably
attacking whatever problem you are handling the wrong way.

On 7/25/07, talk.small <[EMAIL PROTECTED]> wrote:


Hi, Ben

Thanks for your reply, that is also exactly what I am doing now, I am also
wondering if there is a Tapestry API for this functionality.


talk small



Ben Dotte-2 wrote:
>
> Do all of your pages extend from a common base page of your own? In
> the base page you could set a transient page property during rewind
> indicating a rewind had occurred, then check that again during render.
> Something like this:
>
> public abstract boolean isFromRewind();
> public abstract void setFromRewind(boolean val);
>
> public void pageBeginRender()
> {
>   if (getRequestCycle().isRewinding())
>   {
>     setFromRewind(true);
>   }
>   else
>   {
>     if (isFromRewind())
>     {
>       // We got here from a rewind
>     }
>   }
> }
>
> HTH
>
> Ben
>
> On 7/24/07, talk.small <[EMAIL PROTECTED]> wrote:
>>
>> I want to determine in pageBeginRender whether the current rendering of
a
>> page is from a rewound page, any thoughs? Thanks.
>> --
>> View this message in context:
>>
http://www.nabble.com/Page-render-after-the-rewind-tf4136080.html#a11763349
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context:
http://www.nabble.com/Page-render-after-the-rewind-tf4136080.html#a11776411
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to