Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-14 Thread Martin Grigorov
Hi, I think Sven's solution is more generic. Also it will be consistent with WICKET-5597 On Apr 13, 2015 5:20 PM, Sven Meier s...@meiers.net wrote: Well, then we should change the type attribute as well, i.e. from submit to button. Why not just use #setPreventDefault(true)? Because if

Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-14 Thread andrea del bene
Done! thank you guys. On 14/04/2015 08:44, Martin Grigorov wrote: Hi, I think Sven's solution is more generic. Also it will be consistent with WICKET-5597 On Apr 13, 2015 5:20 PM, Sven Meier s...@meiers.net wrote: Well, then we should change the type attribute as well, i.e. from submit to

Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-13 Thread Sven Meier
Well, then we should change the type attribute as well, i.e. from submit to button. Why not just use #setPreventDefault(true)? Because if JavaScript is disabled, the browser will still submit the form, without triggering the callback on the AjaxSubmitLink. Regards Sven Am 13.04.2015 um

Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-13 Thread Andrea Del Bene
Due to WICKET-5197 I think we should add to 'attributes.setPreventDefault(true);' to AjaxSubmitLink Hi, Please create a quickstart app and attach it to a ticket at JIRA. Thanks! On Apr 12, 2015 9:43 PM, Don Ferguson don.fergu...@gmail.com wrote: Dear Wicket Boffins, I have a Wicket 6 app

Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-13 Thread Sven Meier
Hi Andrea, since WICKET-5597 AjaxSubmitLink already changes the button to prevent default submitting of the form: tag.put(type, button); Have fun Sven Am 13.04.2015 um 14:19 schrieb Andrea Del Bene: Due to WICKET-5197 I think we should add to 'attributes.setPreventDefault(true);' to

Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-13 Thread Don Ferguson
Done. https://issues.apache.org/jira/browse/WICKET-5879 https://issues.apache.org/jira/browse/WICKET-5879 On Apr 12, 2015, at 12:47 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Please create a quickstart app and attach it to a ticket at JIRA. Thanks! On Apr 12, 2015 9:43 PM,

Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-13 Thread andrea del bene
The case pointed out by Don is slightly different as the AjaxSubmitLink is attached to a input type=submit/ tag. Adding 'attributes.setPreventDefault(true);' in updateAttributes actually solves his problem. On 13/04/2015 14:32, Sven Meier wrote: Hi Andrea, since WICKET-5597 AjaxSubmitLink

Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-12 Thread Don Ferguson
Dear Wicket Boffins, I have a Wicket 6 app that I’ve recently migrated to Wicket 7. In the app there is a form whose AjaxSubmitLink hides the form as part of the submit. In Wicket7, this causes a ListenerInvocationNotAllowedException to be thrown, since the component that submitted the form

Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-12 Thread Martin Grigorov
Hi, Please create a quickstart app and attach it to a ticket at JIRA. Thanks! On Apr 12, 2015 9:43 PM, Don Ferguson don.fergu...@gmail.com wrote: Dear Wicket Boffins, I have a Wicket 6 app that I’ve recently migrated to Wicket 7. In the app there is a form whose AjaxSubmitLink hides the