The reason for this is that JSF does a 'postback' when an ActionSource (e.g.
a commandbutton or commandlink) is pressed. After the action, the new page
is rendered as a result of the same request.

 

This is normal JSF behavior, but you have a way around it.

 

By putting a <redirect /> tag in your navigation-case, you enforce a
redirect instead of a forward, solving your problem.

 

However, be careful when you use this technique, because you kill the back
button functionality of the browser (usually that's what you want when you
use a redirect, but I don't know the context of your problem).

 

Good luck,

Jan-Kees

 

 

 

From: Wasif Noor [mailto:[EMAIL PROTECTED] 
Sent: zondag 18 november 2007 17:58
To: [email protected]
Subject: JSF refresh problem

 

Whenever a jsf page is refreshed it runs the last action!!!

Has anyone had the same problem or anyone has any solution to this?

 

Thanks,

Wasif

Reply via email to