Also 2 Forms were mistakenly nested which resulted into the onSubmit of the outer form getting called as well. <form wicket:id="mainForm"> <!-- this was the problem --> <div wicket:id="modalDialog"> </div>
</form> therefore ModalWindow.add(new InputForm) was causing 2 nested forms which affected the expected onSubmit behavior On Tue, Jun 2, 2009 at 5:34 AM, Ayodeji Aladejebi <[email protected]>wrote: > no need solved!..simply moved the AjaxSubmitLink outside the form container > and used ModalWindow,closeCurrent > > > On Tue, Jun 2, 2009 at 4:38 AM, Ayodeji Aladejebi <[email protected]>wrote: > >> Hi,Please does anyone has an example on how a modal window should be used >> to collect information using a Form component because in my use, clicking on >> an AjaxSubmitLink does not >> invoke the Links.onSubmit. >> >> Any examples on using Forms with ModalWindow? >> >> >> > > > > - > -
