Changing the query string on postback

UI Components for JSF
Post Reply
averri
Posts: 136
Joined: 07 Sep 2009, 15:51
Location: Brazil

29 Nov 2010, 14:19

I would like to change the query url after a postback.

Example: after a successful postback (a save operation) the URL must be changed from /user.jsf to /user.jsd?userId=123.

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

29 Nov 2010, 17:50

You could try a redirect.

averri
Posts: 136
Joined: 07 Sep 2009, 15:51
Location: Brazil

30 Nov 2010, 19:45

Redirect is not postback, so redirect will not work in my case.

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

30 Nov 2010, 20:06

I'm just suggesting you follow the post/redirect/get design pattern:

http://en.wikipedia.org/wiki/Post/Redirect/Get

Something else you could try is URL rewritting. Take a look at PrettyFaces:

http://ocpsoft.com/prettyfaces/

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 67 guests