1 Reply Latest reply on Jul 13, 2009 6:38 PM by chris.simons

    cancel buttons

    sej67

      I have a page with a cancel button on it.  I have a separate h:form around it so that it can go to a different page than if the user clicks submit and to avoid validation of the fields.  The page defaults to having the cursor on a required input tag.  On my dev site clicking submit works fine.  But on the QA site it displays a validation message for the required field and the user is forced to click submit twice instead of once.  I have used both h:commandLink as well as s:button and both behave the same way.


      Any ideas for allowing the user to click cancel only once?  Or why it behaves differently on the dev and QA sites (yes, they have the exact same code).  I'm using eclipse 3.4, jboss 4.3.0.GA, jdk 1.5.0.17.  TIA.

        • 1. Re: cancel buttons

          This might sound trivial, but have you tried immediate="true"?


          That is puzzling though - I don't see why it would act any different between environments.