http://wicketstuff.org/wicket13/forminput/
and for example the string field reports the message just fine. So what are
you doing different?
johan
On 8/28/07, dzenanr <[EMAIL PROTECTED]> wrote:
>
>
> I have done the following in my form and still no error messages displayed
> (key is a String parameter):
>
> ValidationError validationError = new ValidationError();
> validationError.addMessageKey(key);
> error(validationError);
>
> Even in something simple as required text field, where all work is done by
> Wicket (no validations on my part), I cannot see the error message from
> Wicket when no value is entered for that required field.
>
>
> Matej Knopp-2 wrote:
> >
> > The validators work a bit differently in 1.3
> >
> > you need to use the error(IValidationError error) on IValidatable inside
> > your IValidator.validate(IValidatable validatable);
> > as IValidationError you can use the convenience class ValidationError.
> >
> > e.g. ValidationError error = new ValidationError();
> > error.addMessageKey("validationKey");
> > validatable.error(error);
> >
> > -Matej
> >
> > On 8/28/07, dzenanr <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> I have almost done the migration of my web applications to Wicket 1.3.
> I
> >> have
> >> read on the Wiki all about the migration and I have consulted the
> >> Javadoc.
> >> The only thing that I am not sure how to do is a display of form
> >> validation
> >> errors using FeedbackPanel.
> >>
> >> In Wicket 1.2, the validation errors are displayed properly by using
> the
> >> error(String) method in a form:
> >>
> >> String validationError = LocalizedText.getText(this, key);
> >> error(validationError);
> >>
> >> In Wicket 1.3, the same validations are successful, but the error
> >> messages
> >> are not visible in the Feedback panel used in a page where the form is
> >> added.
> >>
> >> I have tried different things but without success. Please give me a
> hint.
> >>
> >> Dzenan
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Migration-to-Wicket-1.3-tf4341987.html#a12368746
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Migration-to-Wicket-1.3-tf4341987.html#a12369480
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>