E Cho wrote:The most annoying thing I used to deal with in JSF 1.x was when using the JSF navigation... the URL never reflected the page that it was actually on, but the page before.
Has this been fixed in JSF 2?
As Mahendra Pratap pointed out, you can use the redirect in your navigation rules, but you can also use implicit navigation. For example, in any ActionSource2 component (h:commandButton, h:commandLink, etc)
You can say <h:commandButton action="next?faces-redirect=true" value="submit" /> and you'll get the redirect. This will cause the POST REDIRECT GET pattern to be followed. I have a big section on this starting on page 123 in the new book. This feature also works well with view parameters.