1 Reply Latest reply on Oct 13, 2010 1:53 PM by Valeriy Molyakov

    s:token double submit problem

    Valeriy Molyakov Newbie

      Hello,


      I use Seam 2.2.0.GA + MyFaces 1.2.9 + RichFaces 3.3.3.FINAL on Jetty 6.1.25 and trying to use s:token to prevent form double submit


      Basic form example


      <h:form>          
        <s:token/>
        <h:panelGrid>
        <h:inputText value="#{echo.text}" escape="true" />     
        <h:commandLink value="Open plan" action="#{echoController.echo()}"/>
        </h:panelGrid>
      </h:form>
      


      I also use a server state saving method (by default)


      When I send a form at second time (refresh a page) nothing happened while an error should be detected.
      In debugger I can see that the same RENDER_STAMP_ATTR form attribute is retrieved every time.
      This attribute is removed when form is decoded during first request.
      But the same attribute value is retrieved when next request is come in.
      What can be a problem ?


      Thanks