You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Luther Baker <lu...@gmail.com> on 2009/04/02 04:23:34 UTC

Feedback Panel

I have an onSubmit handler that fails. I would like to catch the exception
and explicitly write a message to the page's FeedbackPanel. The message
would be a 'message' from Page.properties ...

My problem is that a literal string works just fine ...
this.error("something I said") but how do I get something from my Resource
or messages file in there?

Something like

        this.error(new ResourceModel("key"));

obviously doesn't work ... but is there a well defined way?

Thanks,

-Luther

Re: Feedback Panel

Posted by Luther Baker <lu...@gmail.com>.
ty.

On Wed, Apr 1, 2009 at 9:33 PM, Jeremy Thomerson
<je...@wickettraining.com>wrote:

> this.error(getString('key'))
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Wed, Apr 1, 2009 at 9:23 PM, Luther Baker <lu...@gmail.com>
> wrote:
>
> > I have an onSubmit handler that fails. I would like to catch the
> exception
> > and explicitly write a message to the page's FeedbackPanel. The message
> > would be a 'message' from Page.properties ...
> >
> > My problem is that a literal string works just fine ...
> > this.error("something I said") but how do I get something from my
> Resource
> > or messages file in there?
> >
> > Something like
> >
> >        this.error(new ResourceModel("key"));
> >
> > obviously doesn't work ... but is there a well defined way?
> >
> > Thanks,
> >
> > -Luther
> >
>

Re: Feedback Panel

Posted by Jeremy Thomerson <je...@wickettraining.com>.
this.error(getString('key'))

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Apr 1, 2009 at 9:23 PM, Luther Baker <lu...@gmail.com> wrote:

> I have an onSubmit handler that fails. I would like to catch the exception
> and explicitly write a message to the page's FeedbackPanel. The message
> would be a 'message' from Page.properties ...
>
> My problem is that a literal string works just fine ...
> this.error("something I said") but how do I get something from my Resource
> or messages file in there?
>
> Something like
>
>        this.error(new ResourceModel("key"));
>
> obviously doesn't work ... but is there a well defined way?
>
> Thanks,
>
> -Luther
>