Refresh JSF page
hi
whenever i navigate from one page to other page using javascript menu or explorer's back button. the browser does not refresh that page. i want that whenever the link for a particular page is clicked or the back button of the browser is pressed, the page should be refreshed. how can i do that?
Thanks
You can try this in the <HEAD> of all your pages. No gaurantees though. You may still have to rig up some auto refresh as suggested by BalusC.
<!-- Don't cache pages -->
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
CowKing
Balus,
It is true that it is browser-specific behaviour and Im glad it is, refreshing the current page on click of button would get annoying, but that is not to say that you cant implement this feature in jsf. You could hack it so that when you click a button it redirect to the current page, thus setting all the variables. While in the refresh action you could set a boolean and so when the page is reloaded and the boolean is set then redirect to another page. Kinda hard to explain I guess but I hope it makes some sense.