Announcement Announcement Module
No announcement yet.
Stop validation if binding fails. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stop validation if binding fails.

    I have a question concerning binding and validation.
    I realized that spring continues to validate a form whether binding succeeds or not.

    For example:
    If a form contains a field that is a date and there is a custom property editor registered to convert this field to date.
    If this field is left empty a binding exception occurs.
    Then spring tries to validate this field so validation fails because the value resulting from the binding will be null.

    I want spring not to validate if binding fails.
    How could I stop validation when binding fails.

    Thanks in Advance.