Announcement Announcement Module
Collapse
No announcement yet.
Validation bypass Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Validation bypass

    Hello!

    Is it possible to bypass the validation with Spring MVC?
    If yes, how?

  • #2
    Are you using the SimpleFormController? If so you can set the validateOnBinding property to false.

    Code:
    <bean id="" class="yourControllerClass">
      <property "validateOnBinding" value="false"/>
    </bean>

    Comment


    • #3
      That will always disable validation. If you want to have some more control over it simply override/implement the method 'suppressValidation' and put some logic in there.

      Comment

      Working...
      X