java - Initbinder for List of Strings -
hallo i'm trying use initbinder annotations in order match values receive multiply list box.the values list box string values.iinitially did following way match 1 choice(i didn't add multiply choice yet) , works fine. code following:
at controller have this:
@initbinder public void initbinderresearch(webdatabinder b) { b.registercustomeditor(research.class, new researcheditor()); }
at debuging can see binding of research_area values not successful.but don't take exception or error.can tell me i'm doing wrong , not working?
you can't override propertyeditor.setastext(list<string> text)
because not exists in parent class , webdatabinder
not use method make string object conversions.
if register original researcheditor
, change property type research
type list<research>
in backing form model, webdatabinder convert thems.
Comments
Post a Comment