Announcement Announcement Module
No announcement yet.
Binding exception error message Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Binding exception error message

    Hi all,

    I have an input field that correspond to an Integer property in my command object.

    The problem is that a user enter a string into it that can't be converted to numeric, a binding exception message will display:

    Example: <form:input path="age" />

    I type: "xyz".

    On screen I can see: "Failed to convert property value of type java.lang.String to required type java.lang.Integer for property age ..."

    I create a Custom validation class that It works properly but this is a binding error so I don't know how to manage it also becasu It happens BEFORE the validation.

    Thanks in advance and sorry for my english.

  • #2
    Have a look at this


    • #3
      Originally posted by sgunter View Post
      Thank you so much