Hi all,
I am developing a product site using seam. The access to all pages is restricted to authorised users only. I use seam security for this purpose with a login page where each request is driven there if the user hasn't logged in. The problem i face is that i want't to use restful urls in my site (for example: /secure/viewProduct?pId=200). When the user is logged in the links works normally, but when the user isn't logged in seam redirects the user to the login page and after the succesfull login redirects again to the viewProduct url but the GET parameters (pId) are lost.
I have configured the components.xml file as defined in the tutorial in order the restful url parameters to be maintained :
<event type="org.jboss.seam.notLoggedIn"> <action expression="#{redirect.captureCurrentView}"/> </event> <event type="org.jboss.seam.postAuthenticate"> <action expression="#{redirect.returnToCapturedView}"/> </event>
If you have any tips on the problem stated above please give me a hint because I couldn't find any possible solutions.
Thanks in advance