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)
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); } Wicket version: 1.4 m3 Source code: java -> http://www.nabble.com/file/p19441542/StatelessFormPage.java StatelessFormPage.java html -> http://www.nabble.com/file/p19441542/StatelessFormPage.html StatelessFormPage.html Thanks a lot, Dave -- View this message in context: http://www.nabble.com/Wicket-1.4-m3-StatelessForm-tp19441542p19441542.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]