I need help on how to populate a char value(in command object) from a String value(in front end). That is, one of the properties I have in command object is the char type, mapping to a CHAR column in a database table. Therefore, I override the initBinder() method in my controller like following:
I'm also using other custom editors but they work fine except this CharacterEditor. Am I doing something absurd?
I am able to get it to work. I just have to create my own editor by extending java.beans.PropertySupport class. So, my property can be populated between string(input field in the form) and the command object's property in char type.
I thought all primitive types are automatically converted by Spring, though.