You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dmitriy Neretin <dm...@googlemail.com> on 2013/02/01 11:36:33 UTC

Re: FeedbackMessage from FormComponent in Wicket 6

Thank You!

But I still don't really understand the error handling. For example I
implement the IValidator interface and if I fount an error how can I
register it in wicket 6 approach?

Old way:
if(a>b){
  error(validatable)
}

New way: validatable.error(new ValidationError(this)); <- is it right?


2013/1/31 Martin Grigorov <mg...@apache.org>

> Hi,
>
> formComponent.getFeedbackMessages().getFirst(level)
>
>
> On Thu, Jan 31, 2013 at 5:14 PM, Dmitriy Neretin <
> dmitriy.neretin@googlemail.com> wrote:
>
> > Hi folks,
> >
> > We are migrating from Wicket 1.5 to 1.6
> >
> > Here is an example what we did in 1.5:
> > formComponent.getFeedbackMessage().getMessage().toString()
> >
> > So, the FormComponent class doesn't have the method getFeedbackMessage()
> > anymore. But getFeedbackMessages()... Can somebody show/explain me how I
> > can get the formComponent feedback message with new approach?
> >
> > Regards,
> > Dmitriy
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>