JSF REFRESHING

Hi.. Well here is my problem. I have a button that runs a method in the backing bean. say i hit that button and the method runs.. Now if i hit the refresh button on the browser it re-runs the method .. any idea on how i can stop that?
[241 byte] By [jbayugaa] at [2007-10-3 11:30:00]
# 1

This is not due to JSF, this is normal by HTML spec and browser behaviour.

Solution: do a GET redirect to the same page. You can use HttpServletResponse.

This thread might be interesting also http://forum.java.sun.com/thread.jspa?threadID=789804&tstart=0

Message was edited by:

BalusC

BalusCa at 2007-7-15 13:56:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...