-
1. Re: Implementing of Post/Redirect/Get Pattern in richfaces 4
lfryc Jun 17, 2011 11:45 AM (in response to ginc)1 of 1 people found this helpfulThis would be great article to you: http://www.warski.org/blog/?p=185
You can find there many choices, just select most appropriate...
-
2. Re: Implementing of Post/Redirect/Get Pattern in richfaces 4
ginc Jun 17, 2011 12:47 PM (in response to lfryc)Thanks for that hint. I believe this is a way to get around this problem too..
But I was wondering if there is a way to handle this post get redirect via a filter.
So instead of handling it at the richfaces/jsf layer, i would like to have a servlet filter take care about it, one layer below.
Therefore my question, is that possible? If yes, how?
-
3. Re: Implementing of Post/Redirect/Get Pattern in richfaces 4
ginc Jun 18, 2011 2:36 PM (in response to ginc)How about a PhaseListener?
Is it possible to implement this pattern as a phaseListener, rathern than handling this issue in business layer?!
I would be actually fine with this implementation here:balusc (http://balusc.blogspot.com/2007/03/post-redirect-get-pattern.html)
but it does not work with richfaces 4, so what would be needed to get changed in order to work?
-
4. Re: Implementing of Post/Redirect/Get Pattern in richfaces 4
ginc Jun 20, 2011 8:50 AM (in response to ginc)I have tried now to solve this issue via jsf navigation rules and its redirect.
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>main</from-outcome>
<to-view-id>/main.xhtml</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
It does do its job correctly, no doubt, but in my case this solution does not work, since i use oncomplete to execute some js and if the redirect is on, this js never gets updated correctly because it got redirected before.
So the question now ist, how can I redirect from post to get on the server side without using client side redirect?
thanks.