This works - thanks a lot. BTW, was the JIRA request directed to me?

Michael

-----Original Message-----
From: Eelco Hillenius [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 13, 2008 6:51 PM
To: [email protected]
Subject: Re: How to reset the feedback panel

In 1.3 and up (so this won't work for 1.2):

You can use Session.get().getFeedbackMessages().clear() (or call clear
using a filter to just clear specific ones). Component specific
feedback messages are also temporarily stored in the session, so
you'll get those as well.

Btw, Session#getFeedbackMessages says "@return unmodifiable list of
feedback messages". This is wrong, as it is mutable (and it is
actually not a list anymore). Could you please create a JIRA issue to
fix the javadoc for 1.3 and 1.4?

Cheers,

Eelco

On Tue, May 13, 2008 at 6:28 PM, Michael Mehrle <[EMAIL PROTECTED]>
wrote:
> How do I reset the feedback panel from within an event handler? I
tried
>  to set the feedback's model to null, but that throws an error:
>
>
>
>  org.apache.wicket.WicketRuntimeException: No get method defined for
>  class: class com.evite.event.model.Event expression: feedback
>
>                 at
>
org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyRes
>  olver.java:433)
>
>                 at
>
org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(Prope
>  rtyResolver.java:275)
>
>                 at
>
org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.j
>  ava:84)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to