Announcement Announcement Module
Collapse
No announcement yet.
Javascript Form Validation with Spring WebFlow.. I think I tried everything... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Javascript Form Validation with Spring WebFlow.. I think I tried everything...

    Javascript Form Validation with Spring WebFlow.....

    I am trying to find a way to do some Javascript Form Validation with Spring WebFlow.

    I have the following code in my JSP

    <INPUT tabIndex="46" value="Submit" type="submit" name="_eventId_submit" onClick="return dontSubmit();">

    that runs a JavaScript function and returns false is the form does not pass validation but my page is still getting submitted to the server. I don't want it submitted if I found a validation error

    I also tried:

    <INPUT tabIndex="46" value="Submit" type="submit" name="_eventId_submit" onsubmit="return dontSubmit();"

    and again if find a error the form still gets submitted. please I tried:

    <form:form modelAttribute="visit" action="${flowExecutionUrl}" onsubmit="dontSubmit()">

    and again the form gets submitted with and without errors..... please help.. what should I do... I have to get this project done asap..
Working...
X