; fc.getFeedbackMessages().first(FeedbackMessage.LEVEL_ERROR).toString();
> > >
> > > Or you may use the default registered converter to transform it to
> > > String. But this is more advanced and most probably you don't need it.
> > >
> > > >
;t need it.
> >
> > >
> > > } else {
> > > error = "Your input is invalid.";
> > > }
> > > fc.getResponse().write(
> > > "" +
sponse().write(
> > "" + error +
> "");
> > }
> > }
> > }
> > }
> >
> >
> > 2) Do you know any good wicket tutorials/example where I can learn how to
> > work with custom
re/src/main/java/org/apache/wicket/markup/html/panel/FeedbackPanel.java
>
> thanks..
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/highlight-invalid-fields-with-custom-Validation-Framework-tp4652949p4653024.html
> Sent fro
http://apache-wicket.1842946.n4.nabble.com/highlight-invalid-fields-with-custom-Validation-Framework-tp4652949p4653024.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-uns
}
> }
>
> private class ErrorHighlightBehavior extends Behavior {
>
> @Override
> public void onComponentTag(Component c, ComponentTag tag) {
> FormComponent fc = (FormComponent) c;
> if (!fc.isValid()) {
> tag.put("c
rmComponent) c;
if (!fc.isValid()) {
tag.put("class", "error");
}
}
}
}
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/highlight-invalid-fields-with-custom-Validation-Framework-tp4652949p4652990.html
tag.put("class", "error");
> }
> }
> }
> }
You face all these problems because you migrate code from version X to
version X + Y, where Y is > 1, i.e. you need to read the migration
guides for all the steps.
Or just ask here and we will try
tag.put("class", "error");
}
}
}
}
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/highlight-invalid-fields-with-custom-Validation-Framework-tp4652949p4652978.html
Sent from
s message in context:
> http://apache-wicket.1842946.n4.nabble.com/highlight-invalid-fields-with-custom-Validation-Framework-tp4652949p4652970.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
t; Code of HTML File:
>
>
> It would be great if you give me a short example on how to do that. Or links
> with good tutorials?
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/highlight-invalid-fields-with-custom-Validation-Framew
11 matches
Mail list logo