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

  • Stop validation if binding fails.

    Hi,
    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.
Working...
X