this is very strange.
ComponentFeedbackMessageFilter implements IFeedbackMessageFilter which extends Serializable, so the message filter is serializable itself.

i tried serializing the filter using our Objects.clone method and it worked. i also dropped your page into an app and tried it, and everything seemed to work fine.

when does this error happen?

-Igor


On 1/21/06, Jesper Preuss <[EMAIL PROTECTED]> wrote:
Here are the stack trace. It's in the attached app.htm

I have also included my FormValidate.java and FormValidate.html for
help if it's wrong.

J- Preuss

On 1/21/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> can you attach the entire stacktrace please.
>
> -Igor
>
>
>
> On 1/21/06, Jesper Preuss <[EMAIL PROTECTED] > wrote:
> > I have now upgraded to Wicket HEAD, to use ComponentFeedbackPanel. It
> > took some time.
> >
> > But when I use it, it comes with the following exception:
> > Caused by: java.io.NotSerializableException:
> > wicket.feedback.ComponentFeedbackMessageFilter
> >
> > But as I can see, ComponentFeedbackMessageFilter is Serializable.
> >
> > On 1/20/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > see ComponentFeedbackPanel in HEAD.
> > >
> > > its a feedback panel that filters messages for a certain component.
> > >
> > > so you do:
> > > TextField tf=new TextField("name");
> > > add(tf);
> > > add(new ComponentFeedbackPanel("nameError", tf));
> > > add(nf);
> > >
> > > and the same markup as in your example.
> > >
> > > -Igor
> > >
> > >
> > >
> > > On 1/20/06, Jesper Preuss < [EMAIL PROTECTED] > wrote:
> > > > Don't follow you complete, but:
> > > >
> > > > I have 3 files:
> > > > - FormValidatePage.properties :
> > > > RequiredValidator=Field '${label}' is required
> > > >
> > > > - FormValidatePage.java
> > > > public class FormValidatePage extends WebPage {
> > > > ...
> > > > public FormValidatePage() {
> > > >                 Person p = new Person("Corey", "3");
> > > >
> > > >                 final FeedbackPanel feedback = new
> > > FeedbackPanel("feedback");
> > > >                 add(feedback);
> > > >
> > > >                 PersonForm personForm = new PersonForm("person", p);
> > > >                 add(personForm);
> > > >         }
> > > > ...
> > > > }
> > > >
> > > > - FormValidatePage.html:
> > > > <html xmlns:wicket=" http://wicket.sourceforge.net/" xml:lang="en"
> > > lang="en">
> > > >         <head>
> > > >                 <title></title>
> > > >         </head>
> > > >
> > > >         <body>
> > > >                 <form wicket:id="person" action="" will be
> replaced]">
> > > >                         Person name: <input type="text"
> > > wicket:id="name"/><br/>
> > > >                         Person strength: <input type="text"
> > > wicket:id="strength"/><br/>
> > > >
> > > >                         <input type="submit"/>
> > > >                 </form>
> > > >                 <div id="">
> > > >                         <span wicket:id="feedback"/>
> > > >                 </div>
> > > >                 <br/>
> > > >         </body>
> > > > </html>
> > > >
> > > > I would like to have:
> > > > - FormValidatePage.html:
> > > > ...
> > > >                 <form wicket:id="person" action="" will be
> replaced]">
> > > >                         Person name: <input type="text"
> > > wicket:id="name"/><br/>
> > > >                         <span wicket:id="nameError"></span>
> > > >                         Person strength: <input type="text"
> > > wicket:id="strength"/><br/>
> > > >                         <span
> > > wicket:id="strengthError"></span>
> > > >                         <input type="submit"/>
> > > >                 </form>
> > > > ...
> > > >
> > > > On 1/20/06, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > > > > messages are get through the localizer see:
> > > > >
> getApplication().getResourceSettings().getLocalizer()
> > > > >
> > > > > Where do you want to put youre validation messages?
> > > > > Not in resource bundles (propertie files) in the same dir as youre
> page
> > > or
> > > > > application object?
> > > > >
> > > > > johan
> > > > >
> > > > >
> > > > >
> > > > > On 1/20/06, Jesper Preuss < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I would like to be able to choose the location of my validation
> error
> > > > > messages.
> > > > > >
> > > > > > I have med a Form where a TextField needs to be validated. And
> have
> > > > > > added this to the java final FeedbackPanel feedback = new
> > > > > > FeedbackPanel("feedback");
> > > > > >                 add(feedback);
> > > > > > and have added this <span wicket:id="feedback"/> to the html page.
> > > > > >
> > > > > > But I need to choose the location for all error validation
> messages of
> > > > > > the TextField's in my form.
> > > > > >
> > > > > > What do I need to do?
> > > > > >
> > > > > >
> > > > > >
> > > -------------------------------------------------------
> > > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log
> > > > > files
> > > > > > for problems?  Stop!  Download the new AJAX search engine that
> makes
> > > > > > searching your log files as easy as surfing the  web.  DOWNLOAD
> > > SPLUNK!
> > > > > >
> > > > >
> > >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> > > > > > _______________________________________________
> > > > > > Wicket-user mailing list
> > > > > > [email protected]
> > > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> -------------------------------------------------------
> > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > > files
> > > > for problems?  Stop!  Download the new AJAX search engine that makes
> > > > searching your log files as easy as surfing the  web.  DOWNLOAD
> SPLUNK!
> > > >
> > >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > [email protected]
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> > for problems?  Stop!  Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>



Reply via email to