List Info

Thread: RE: How to support back-button with either Javascript turn-off or on in the browser




RE: How to support back-button with either Javascript turn-off or on in the browser
country flaguser name
Philippines
2007-09-23 19:12:15

Any help pls;

 

-----Original Message-----
From:
Bryan Sevilla
Sent
: Saturday, September 22, 2007 10:43 AM
To: '
usersmyfaces.apache.org'
Subject: How to support back-button with either Javascript turn-off or on in the browser

 

I'm having problem on providing back-button (browser backbutton) support for browsers having javascript both turn-off or on. Can anybody guide me on how can I achieve this using myfaces 1.1.5 and tomahawk-1.1.5?

 

I've look into the source, and I've noticed that for server-side state saving, you're caching the SerializedView of the current request in the session, and you're retrieving it using the current request ViewId and jsf_sequence. All of this needed keys to retrieve the restore the view from the session were wrapped into the javax.faces.ViewState stored somewhere else. To properly restore the View from the session, I've just think I may need that javax.faces.ViewState in my request both GET and POST. Can you someone pls. clarify if my idea is correct? and how could I implement this using myfaces? Or maybe myfaces has already provide this behavior i've been thinking of, how could I configure this with myfaces?

 

I've resorted to server-side thing solution as the ViewState of client-side state saving is too large to append it on GET request params.

 

Thanks,

Bryan

Re: How to support back-button with either Javascript turn-off or on in the browser
user name
2007-09-24 11:23:47
<body onload="window.history.forward(1);">

works for me

Luka


Bryan Sevilla wrote:
>
> Any help pls…
>
> -----Original Message-----
> *From Bryan
Sevilla
> *Sent** Saturday,
September 22, 2007 10:43 AM
> *To 'usersmyfaces.apache.org'
> *Subject How to
support back-button with either Javascript turn-off 
> or on in the browser
>
> I'm having problem on providing back-button (browser
backbutton) 
> support for browsers having javascript both turn-off or
on. Can 
> anybody guide me on how can I achieve this using
myfaces 1.1.5 and 
> tomahawk-1.1.5?
>
> I've look into the source, and I've noticed that for
server-side state 
> saving, you're caching the SerializedView of the
current request in 
> the session, and you're retrieving it using the current
request ViewId 
> and jsf_sequence. All of this needed keys to retrieve
the restore the 
> view from the session were wrapped into the
javax.faces.ViewState 
> stored somewhere else. To properly restore the View
from the session, 
> I've just think I may need that javax.faces.ViewState
in my request 
> both GET and POST. Can you someone pls. clarify if my
idea is correct? 
> and how could I implement this using myfaces? Or maybe
myfaces has 
> already provide this behavior i've been thinking of,
how could I 
> configure this with myfaces?
>
> I've resorted to server-side thing solution as the
ViewState of 
> client-side state saving is too large to append it on
GET request params.
>
> Thanks,
>
> Bryan
>


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )