I have a warning in my log if I use "new TextField("text", new Model()":

WARN  [org.apache.wicket.markup.html.form.AbstractTextComponent] Couldn't
resolve model type of
Model:classname=[org.apache.wicket.model.CompoundPropertyModel$AttachedCompoundPropertyModel]:nestedModel=[Model:classname=[org.apache.wicket.model.CompoundPropertyModel]:nestedModel=[Model:classname=[org.apache.wicket.model.Model]:object=[null]]]
for [MarkupContainer [Component id = email]], please set the type yourself.

If I set the type manually "new TextField("text", new Model(),
String.class)" the warning disappear.
But in this case I have a problem with EmailValidator.
The validation error occur because in case with setting type -
getConverterInput() return empty line, but not null.

The question is - how to fix warning in the log and escape validation error
in case if nothing has been input in the field

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Set-FormComponent-Type-and-EmailValidator-tp3356588p3382142.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to