Re: How to do POST-REDIRECT-GET after action with PrettyFaces ?

Splash Forums PrettyFaces Users How to do POST-REDIRECT-GET after action with PrettyFaces ? Re: How to do POST-REDIRECT-GET after action with PrettyFaces ?

#21933

ceefour
Participant

@Christian : yes the action method is invoked.

I also try using a4j:commandButton and it works (After clicking, I can refresh the page and Firefox will not “complain”) with a nice ajax effect.

But I am still curious how to do it with normal h:commandButton with PrettyFaces.

The only way I can manage it to work is by using JSF-style viewParam, returning “/admin/users/show?faces-redirect=true&includeViewParams=true” and PrettyFaces will rewrite the URL. This results in proper P-R-G and correct PrettyFaces URL. However it’s quite some work just to get a basic functionality.