I'm having the same problem with wicket-1.4-rc4. Does anybody have a clue why this is happening?
FakeBoy wrote: > > Hi everyone, > I try to work with StatelessForm, but I have strange problem. When I fill > in form fields first time everything works good. But If I have some > validation in some field (in my example field: first name is required) and > if the walidation failed, and i try to click submit button some strange > character (;,:) appear in form fields and it is not possible to submit > form. I thing that problem is in URL, because it looks strange and i can > see a lot of duplicated values for the same field. I discovered , if I > didnt call super constructor with page parameters it works fine. (bu there > are other problems with page parameters) > > <pre> > public StatelessFormPage(PageParameters pageParameters) { > //PROBLEM - when I delete this everything works but if not it > works > strange > super(pageParameters); > > //FEEDBACK PANEL > FeedbackPanel feedbackPanel = new > FeedbackPanel("feedbackPanel"); > add(feedbackPanel); > > //STATELESS FORM > StatelessForm<Void> form = new StatelessForm<Void>("form"); > add(form); > > //FORMS FIELDS > form.add(new TextField<String>("firstName", new > PropertyModel<String>(this, "firstName")).setRequired(true)); > form.add(new TextField<String>("lastName", new > PropertyModel<String>(this, "lastName"))); > > //SUBMIT BUTTON > Button submit = new Button("submit") { > @Override > public void onSubmit() { > System.out.println("Button:onSubmit()"); > System.out.println("First name: " + > firstName); > System.out.println("Last name: " + > lastName); > } > }; > form.add(submit); > } > </pre> > > Wicket version: 1.4 m3 <br /> > Source code: <br /> > java -> http://www.nabble.com/file/p19430608/StatelessFormPage.java > StatelessFormPage.java <br /> > html -> http://www.nabble.com/file/p19430608/StatelessFormPage.html > StatelessFormPage.html <br /> > <br /> > Thanks a lot, Dave > -- View this message in context: http://www.nabble.com/StatelessForm-in-Bookmarkable-Page-problem-tp19430608p23539798.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org