Announcement Announcement Module
Collapse
No announcement yet.
Allowing empty form params for primitives Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Allowing empty form params for primitives

    Hi,

    The command object that my form binds to consists of Strings and primitives (byte,shorts,ints). The fields for some of the primitives are allowed to be empty(""). I get binding errors when they are empty so I need to register a custom editor in the initBinder() method to allow for this. However I can't find a PropertyEditor that can handle this for me. Does one exist? I know that CustomNumberEditor can be used but only for the Object representation of these primitives.

    Thanks
Working...
X