JSF Navigation with URL rewrite
843844Jul 8 2007 — edited Jul 9 2007Hi,
The page that I'm developing needs to be able to manage session without using cookies. Therefore I'm using response.encodeURL() for all links.
However I don't know how to keep the sessions when submitting forms using commandbuttons that trigger backing bean functions.
E.g
I have a commandbutton:
<h:commandButton value="Action" action="#{myBean.action}"/>
method action() returns the string "success"
and navigation rule:
<navigation-rule>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/nextPage.jsp</to-view-id>
<redirect />
</navigation-case>
</navigation-rule>
This navigation works fine but is there any way to pass the session Id in a similar way as using response.encodeURL() ?
Grateful for any help!
/R