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

[324 byte] By [abhishekgarg_1984a] at [2007-10-2 23:54:08]
# 1
This is browser-specific behaviour and has nothing to do with JSF.
BalusCa at 2007-7-14 16:40:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
hii know but i want to do so. this is the requirement of my application that the page should be refreshed and all the components should be rendered again.
abhishekgarg_1984a at 2007-7-14 16:40:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Again, this is browser-specific behaviour and you cannot fix it using JSF.You can try to implement some auto-refresh stuff which refreshes the page every minute or so. Using META tag or Javascript for example.
BalusCa at 2007-7-14 16:40:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

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

IamCowKinga at 2007-7-14 16:40:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

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.

michaeldmurraya at 2007-7-14 16:40:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...