-
1. Re: a4j:status question
ilya_shaikovsky Oct 2, 2009 5:53 AM (in response to mitroiasi)RichFaces has no facilities to handle browser back button.
-
2. Re: a4j:status question
mitroiasi Oct 2, 2009 6:53 AM (in response to mitroiasi)
Hi Ilya,
But I don't want to handle the back button of the browser.
What I want is something else.
In my web-application pages I have next and back buttons.
When I press next button this status component is shown.
On the next page I press the back button of the browser. The browser tries to get me to the last page. But it shows the status and nothing happens.
I saw this behaviour also at the component modalPanel.
On the first page a have a link which shows a modalPanel. On the modalPanel I have 2 buttons with "Yes" or "No". When I press "No" the modalPanel dissapears and the first page is shown. When I press "Yes" the second page is shown and, of course, the modalPanel dissapears.
But when on the second page I press the back button from the browser, the browser tries to show the first page. But the modalPanel is already opened.
How can I make the modalPanel not to be shown from the beginning?
I hope I have explained my problem propertly.
Than you -
3. Re: a4j:status question
ilya_shaikovsky Oct 2, 2009 9:07 AM (in response to mitroiasi)Maybe just implement your navigation via standard controls?
-
4. Re: a4j:status question
maxmustang Oct 2, 2009 10:46 AM (in response to mitroiasi)Hello, i advice to avoid back-button because you can go to pages with data states not actual any more (inconsistent data). (Make navigation with controls inside pages (jsf controls.)
To disable browser back i use following in every page (f.i. in facelet template)
history.forward(); -
5. Re: a4j:status question
maxmustang Oct 2, 2009 10:47 AM (in response to mitroiasi)sorry here the code:
script type=text/javascript"
history.forward();
script