What instanceof is this submittingButton ? François Meillet Formation Wicket - Développement Wicket
Le 9 nov. 2014 à 13:42, Maxim Solodovnik <solomax...@gmail.com> a écrit : > Thanks for the quick response! > > Unfortunately this solution is not working due to: > submittingButton instanceof > org.apache.wicket.markup.html.form.FormComponent == false > submittingButton instanceof org.apache.wicket.Component == false > submittingButton instanceof submittingButton instanceof > org.apache.wicket.behavior.Behavior == false > > > On 9 November 2014 18:37, Francois Meillet <francois.meil...@gmail.com> > wrote: > >> String inputName = ((FormComponent) submittingButton).getInputName(); >> >> >> François Meillet >> Formation Wicket - Développement Wicket >> >> >> >> >> >> Le 9 nov. 2014 à 13:08, Maxim Solodovnik <solomax...@gmail.com> a écrit : >> >>> Hello All, >>> >>> I'm trying to migrate project from Wicket 1.4 to Wicket 6. >>> >>> previously Form.delegateSubmit was Form.delegateSubmit( >>> IFormSubmittingComponent >>> < >> http://ci.apache.org/projects/wicket/apidocs/1.4.x/org/apache/wicket/markup/html/form/IFormSubmittingComponent.html >>> >>> submittingComponent) and the code: >>> submittingComponent.getInputName() worked as expected >>> right now it is: Form.delegateSubmit(IFormSubmitter submittingButton) and >>> it is impossible to get inputName anymore :( >>> >>> I tried to cast submittingComponent to IFormSubmittingComponent but it is >>> not working due to submittingComponent is of type >>> "org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1@33b88671" and I'm >>> unable to cast it to something useful :( >>> >>> Thanks in advance! >>> >>> -- >>> WBR >>> Maxim aka solomax >> >> > > > -- > WBR > Maxim aka solomax