Re: Apache Wicket - Enforcing POST on Ajax calls

2020-10-19 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-6844 I've decided to implement it at AbstractDefaultAjaxBehavior so almost all Ajax behaviors could make use of it. On Mon, Oct 19, 2020 at 8:21 PM Sven Meier wrote: > +1 that's a good proposal > > Sven > > > On 19.10.20 12:33, Maxim Solodovnik

Re: Apache Wicket - Enforcing POST on Ajax calls

2020-10-19 Thread Sven Meier
+1 that's a good proposal Sven On 19.10.20 12:33, Maxim Solodovnik wrote: +1 On Mon, 19 Oct 2020 at 17:28, Martin Grigorov wrote: Hi Eric, You can implement it yourself: In #onUpdate(AjaxRequestTarget) start with: AjaxRequestAttributes attrs = getAttributes(); String desiredMethod =

Re: Apache Wicket - Enforcing POST on Ajax calls

2020-10-19 Thread Maxim Solodovnik
+1 On Mon, 19 Oct 2020 at 17:28, Martin Grigorov wrote: > Hi Eric, > > You can implement it yourself: > > In #onUpdate(AjaxRequestTarget) start with: > > AjaxRequestAttributes attrs = getAttributes(); > String desiredMethod = attrs.getMethod().toString(); > String actualMethod =

Re: Apache Wicket - Enforcing POST on Ajax calls

2020-10-19 Thread Martin Grigorov
Hi Eric, You can implement it yourself: In #onUpdate(AjaxRequestTarget) start with: AjaxRequestAttributes attrs = getAttributes(); String desiredMethod = attrs.getMethod().toString(); String actualMethod = ((HttpServletRequest) RequestCycle.get().getRequest().getContainerRequest()).getMethod();

Re: Apache Wicket - Enforcing POST on Ajax calls

2020-10-18 Thread Sven Meier
Hi, with AjaxFormComponentUpdatingBehavior only a single component is processed and not the complete Form. So method mismatches are not checked. Have fun Sven On 17.10.20 14:34, Eric Hamel wrote: Looking at our implementation, we are using an AjaxFormComponentUpdatingBehavior to trigger

Re: Apache Wicket - Enforcing POST on Ajax calls

2020-10-17 Thread Eric Hamel
Looking at our implementation, we are using an AjaxFormComponentUpdatingBehavior to trigger our data save. Even though we do a have parent form the onSubmit is never called. Is there an alternative to the onMethodMismatch ? — Eric Hamel Senior Project Manager Albany Information

Re: Apache Wicket - Enforcing POST on Ajax calls

2020-10-16 Thread Eric Hamel
Thanks I’ll try that ! — Eric Hamel Senior Project Manager Albany Information Technology Group C. 518-698-4503 > On Oct 16, 2020, at 4:32 PM, Martin Grigorov wrote: > > On Fri, Oct 16, 2020, 23:27 Eric Hamel wrote: > >> I apologize in advance for my vague question. Our Wicket 8

Re: Apache Wicket - Enforcing POST on Ajax calls

2020-10-16 Thread Martin Grigorov
On Fri, Oct 16, 2020, 23:27 Eric Hamel wrote: > I apologize in advance for my vague question. Our Wicket 8 based > application was submitted to pen testing from our EISO. While I understand > the finding, I'm not 100% sure I understand the problem nor do I know how > to address it. > > In one of

Apache Wicket - Enforcing POST on Ajax calls

2020-10-16 Thread Eric Hamel
I apologize in advance for my vague question. Our Wicket 8 based application was submitted to pen testing from our EISO. While I understand the finding, I'm not 100% sure I understand the problem nor do I know how to address it. In one of our complex forms that uses Ajax Calls to automatically