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 ?

#21941

I don’t think that the logs will help here. You must have a close look at the requests and response your browser sends and receives. Look at the following screenshot for an example for a typical POST-REDIRECT-GET like it happens if you return something like “pretty:myId” from an action method:

View post on imgur.com

The first row is the postback to the server. It executes the action method which returns “pretty:myId”. PrettyFaces therefore sends a 302 response (=redirect) to the client telling the client to load the target page with a GET request. The browser does so in the second row. It is a normal GET request for the target page (which is in this example the same as the page the postback was send to).