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

  • Binding "enabled"

    Is "enabled" a reserved word in Spring binding? In a command object I have a property named "enabled" of type java.lang.Boolean and it doesn't get bound upon form submission. Everything works if property is renamed. @MVC annotations are being used and here is the signature of a method that gets called upon form submit:
    Code:
    @RequestMapping(method = RequestMethod.POST)
    public String createUser(@ModelAttribute User user)
    A custom boolean editor is being used:

    Code:
    @InitBinder
    public void initDataBinder(WebDataBinder binder)
    {
    	binder.registerCustomEditor(Boolean.class, new CustomBooleanEditor(true));
    }
    Thanks in advance!
Working...
X