1 Reply Latest reply on Oct 22, 2007 6:33 AM by vas_opel

    seam security and Restful parameters

    vas_opel

      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>
      

      Any ideas how to solve this problem?