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();