For additional commands, e-mail: users-h...@wicket.apache.org
--
View this message in context:
http://old.nabble.com/TextField-w--bean-as-model-object--tp27880787p27900904.html
Sent from the Wicket - User mailing list archive at Nabble.com
I'd appreciate another pair of eyes on the following:
I have a US ZIP Code input text field that I'd like to bind to an Area
bean. The idea is that the component would prompt/display for a 5-digit zip
code but getModelObject() would return an Area:
class ZipInput extends RequiredTextFieldArea;
there are two ways to do this
either you do everything in the converter
take the string and convert it into the area, if the zip is incorrect
throw a conversion exception
or you split the two
have a converter that converts the string into the area and a
validator that makes sure the area is