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="[This 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="[This 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
> >
>
>
Title: Unexpected RuntimeException
Unexpected RuntimeException
|
[Page class = dk.netid.wicket.component.forms.FormValidatePage, id = 1]:Page
#
Path
Type
Model Object
1
_body
wicket.markup.html.internal.BodyOnLoadContainer
2
feedback
wicket.markup.html.panel.FeedbackPanel
3
feedback:feedbackul
wicket.markup.html.WebMarkupContainer
4
feedback:feedbackul:messages
wicket.markup.html.list.ListView
[]
5
person
wicket.markup.html.form.Form
Person{name='Corey', strength='3'}
6
person:name
wicket.markup.html.form.TextField
Corey
7
person:nameError
wicket.markup.html.panel.ComponentFeedbackPanel
no get method defined for class: class dk.netid.wicket.component.forms.FormValidatePage$Person _expression_: nameError
8
person:nameError:feedbackul
wicket.markup.html.WebMarkupContainer
no get method defined for class: class dk.netid.wicket.component.forms.FormValidatePage$Person _expression_: feedbackul
9
person:nameError:feedbackul:messages
wicket.markup.html.list.ListView
[]
10
person:strength
wicket.markup.html.form.RequiredTextField
3
11
person:strengthError
wicket.markup.html.panel.ComponentFeedbackPanel
no get method defined for class: class dk.netid.wicket.component.forms.FormValidatePage$Person _expression_: strengthError
12
person:strengthError:feedbackul
wicket.markup.html.WebMarkupContainer
no get method defined for class: class dk.netid.wicket.component.forms.FormValidatePage$Person _expression_: feedbackul
13
person:strengthError:feedbackul:messages
wicket.markup.html.list.ListView
[]
error message
Person strength:
error message
FormValidatePage.java
Description: Binary data
