Re: [Wicket-user] Form, FeedbackPanel and AjaxSubmitbutton's default
and its updated-IgorOn 10/11/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: actually that example is wrong, it does need to be updated. onError() was added after the example was written, and since there was no compile time break i missed that spot :)i will update the example soon. -Igor On 10/11/06, Stefan Lindner <[EMAIL PROTECTED] > wrote: I see! Perhaps you are right when you say that there is no food defaultbehavior. Thank you for answering my stupid question. :-)But maybe the documentation should be updated. the examle in wicket-examples did not make it clear that a FeedbackPanel inside of a Form needs an overwritten onErrorMethod. A Feedbackpanel outside of the form (on thePanel) does not (see wicket.examples.ajax.builtin.FormPage).Stefan Lindnerigor.vaynberg wrote:>> it is not wrong, you can have a feedback panel anywhere you like. >> nothing happens because nothing is added to the target. all im saying is> that there is no good "default" behavior because everyone structures their> components differently.> > -Igor>>> On 10/11/06, Stefan Lindner <[EMAIL PROTECTED]> wrote:>> >> -Ursprüngliche Nachricht- >> My FeedbackPanel is inside of the form. Ist this wrong? If I have it>> inside of the Form, nothing happens if I do not override onError. Stefan Lindner - >> Using Tomcat but need to do more? Need to support web services, security?>> Get stuff done quickly with pre-integrated technology to make your job>> easier>> Download IBM WebSphere Application Server v.1.0.1 based on Apache>> Geronimo>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> ___>> Wicket-user mailing list>> Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user -> Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job> easier> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user >>--View this message in context: http://www.nabble.com/Re%3A-Form%2C-FeedbackPanel-and-AjaxSubmitbutton%27s-default-tf2425580.html#a6765901 Sent from the Wicket - User mailing list archive at Nabble.com.- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form, FeedbackPanel and AjaxSubmitbutton's default
actually that example is wrong, it does need to be updated. onError() was added after the example was written, and since there was no compile time break i missed that spot :)i will update the example soon.-Igor On 10/11/06, Stefan Lindner <[EMAIL PROTECTED]> wrote: I see! Perhaps you are right when you say that there is no food defaultbehavior. Thank you for answering my stupid question. :-)But maybe the documentation should be updated. the examle in wicket-examplesdid not make it clear that a FeedbackPanel inside of a Form needs an overwritten onErrorMethod. A Feedbackpanel outside of the form (on thePanel) does not (see wicket.examples.ajax.builtin.FormPage).Stefan Lindnerigor.vaynberg wrote:>> it is not wrong, you can have a feedback panel anywhere you like. >> nothing happens because nothing is added to the target. all im saying is> that there is no good "default" behavior because everyone structures their> components differently.> > -Igor>>> On 10/11/06, Stefan Lindner <[EMAIL PROTECTED]> wrote: -Ursprüngliche Nachricht- >> My FeedbackPanel is inside of the form. Ist this wrong? If I have it>> inside of the Form, nothing happens if I do not override onError. Stefan Lindner - >> Using Tomcat but need to do more? Need to support web services, security?>> Get stuff done quickly with pre-integrated technology to make your job>> easier>> Download IBM WebSphere Application Server v.1.0.1 based on Apache>> Geronimo>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> ___>> Wicket-user mailing list>> Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user -> Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job> easier> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user>>--View this message in context: http://www.nabble.com/Re%3A-Form%2C-FeedbackPanel-and-AjaxSubmitbutton%27s-default-tf2425580.html#a6765901 Sent from the Wicket - User mailing list archive at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form, FeedbackPanel and AjaxSubmitbutton's default
I see! Perhaps you are right when you say that there is no food default behavior. Thank you for answering my stupid question. :-) But maybe the documentation should be updated. the examle in wicket-examples did not make it clear that a FeedbackPanel inside of a Form needs an overwritten onErrorMethod. A Feedbackpanel outside of the form (on the Panel) does not (see wicket.examples.ajax.builtin.FormPage). Stefan Lindner igor.vaynberg wrote: > > it is not wrong, you can have a feedback panel anywhere you like. > > nothing happens because nothing is added to the target. all im saying is > that there is no good "default" behavior because everyone structures their > components differently. > > -Igor > > > On 10/11/06, Stefan Lindner <[EMAIL PROTECTED]> wrote: >> >> >> >> -Ursprüngliche Nachricht- >> My FeedbackPanel is inside of the form. Ist this wrong? If I have it >> inside of the Form, nothing happens if I do not override onError. >> >> Stefan Lindner >> >> - >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Re%3A-Form%2C-FeedbackPanel-and-AjaxSubmitbutton%27s-default-tf2425580.html#a6765901 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form, FeedbackPanel and AjaxSubmitbutton's default
it is not wrong, you can have a feedback panel anywhere you like.nothing happens because nothing is added to the target. all im saying is that there is no good "default" behavior because everyone structures their components differently. -IgorOn 10/11/06, Stefan Lindner <[EMAIL PROTECTED]> wrote: -Ursprüngliche Nachricht-My FeedbackPanel is inside of the form. Ist this wrong? If I have it inside of the Form, nothing happens if I do not override onError.Stefan Lindner- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form, FeedbackPanel and AjaxSubmitbutton's default
-Ursprüngliche Nachricht- My FeedbackPanel is inside of the form. Ist this wrong? If I have it inside of the Form, nothing happens if I do not override onError. Stefan Lindner - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form, FeedbackPanel and AjaxSubmitbutton's default behavior (Wicket 2)
Shouldn't this happen automatically as default behavior of the original onError mehtod of AjaxSubmitButton? currently I havt to ovveride the onErrorMethod in every AjaxSubmitButton of a Form. create your own subclass of AjaxSubmitButton that does it for you-Igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form, FeedbackPanel and AjaxSubmitbutton's default behavior (Wicket 2)
why would you repaint form on error or success?i usually only repaint my feedback panels that are outside the form-IgorOn 10/11/06, Stefan Lindner <[EMAIL PROTECTED]> wrote:The following still happens with actual trunk: On a form like Tu den Mecker hierhin ...I have a FeedbackPanel and AjaxSubmitButtonThe JavaCode looks like this:public MyPanel() {super(parent, id);new MyForm(this, "myForm", );} private class MyForm extends Form {private static final long serialVersionUID = 1L;FeedbackPanel fp1;public MyForm(final MarkupContainer parent, final String id, IModel model) { super(parent, id, model); fp1 = new FeedbackPanel(this, "feedback"); new TextField(this, "login").setRequired(true); new AjaxSubmitButton(this, "ajax-submit-button", this) { private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target, Form form) { System.out.println("AjaxOnSubmit called"); target.addComponent(form); } @Override protected void onError(AjaxRequestTarget target, Form form) { System.out.println("AjaxOnSubmit called"); target.addComponent(form); } };}I must override AjaxSubmitButtons's onError method like above to see a FeedbackPanel if the input for a required field is missing. Shouldn't this happen automatically as default behavior of the original onError mehtod of AjaxSubmitButton? currently I havt to ovveride the onErrorMethod in every AjaxSubmitButton of a Form. Stefan Lindner-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Form, FeedbackPanel and AjaxSubmitbutton's default behavior (Wicket 2)
The following still happens with actual trunk: On a form like Anmeldename Tu den Mecker hierhin ... I have a FeedbackPanel and AjaxSubmitButton The JavaCode looks like this: public MyPanel() { super(parent, id); new MyForm(this, "myForm", ); } private class MyForm extends Form { private static final long serialVersionUID = 1L; FeedbackPanel fp1; public MyForm(final MarkupContainer parent, final String id, IModel model) { super(parent, id, model); fp1 = new FeedbackPanel(this, "feedback"); new TextField(this, "login").setRequired(true); new AjaxSubmitButton(this, "ajax-submit-button", this) { private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target, Form form) { System.out.println("AjaxOnSubmit called"); target.addComponent(form); } @Override protected void onError(AjaxRequestTarget target, Form form) { System.out.println("AjaxOnSubmit called"); target.addComponent(form); } }; } I must override AjaxSubmitButtons's onError method like above to see a FeedbackPanel if the input for a required field is missing. Shouldn't this happen automatically as default behavior of the original onError mehtod of AjaxSubmitButton? currently I havt to ovveride the onErrorMethod in every AjaxSubmitButton of a Form. Stefan Lindner <>- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user