Wicket: automatic field validation does not work -
i have integer field , when enter non integer value (let's symbolic one) feedback panel should triggered automatically default message, not work, have call in onerror method of form method error().
this textfield, use:
requiredtextfield<integer> intfield = new requiredtextfield<> ("intvalue", integervalue,integer.class);
this simple feedbackpanel:
fragment.add(new feedbackpanel("feedback"));
it works when call method error() in method onerror() of form.
could show how create form , model use? far understand want bind model fields. best guess model not have property "intvalue".
you might want (re)visit wicket wiki "more on models".
Comments
Post a Comment