On Sat, Mar 19, 2011 at 10:00 PM, Brown, Berlin [GCG-PFS] < berlin.br...@primerica.com> wrote:
> You mean? > > Markup, main panel: > > <form> > <div wicket:id="thePanelForModalWindow"></div> > </form> > > the markup will look like: <form wicket:id="formComponentId"> <div wicket:id="modalWindow"></div> </form> <wicket:panel> <form wicket:id="formInsideThePanelForModalWindow"></form> </wicket:panel> OK, but why does it work with Internet Explorer 7. Strange. > If you add a root form component inside the modal window the generated markup will have 2 nested form tags which is illegal. Each browser have its own tolerance for illegal HTML > > -----Original Message----- > From: Pedro Santos [mailto:pedros...@gmail.com] > Sent: Saturday, March 19, 2011 8:02 PM > To: users@wicket.apache.org > Subject: Re: Ajax modal window does not allow submit form under open > browsers > > To submit a form inside a modal window you must enclose it by a form in > the main panel and use an AJAX submit component. Please open a ticket + > quickstart if the issue remains. > > On Sat, Mar 19, 2011 at 7:45 PM, Brown, Berlin [GCG-PFS] < > berlin.br...@primerica.com> wrote: > > > When I use the ajax modal window and under Firefox/Chrome/Safari, the > > ajax form submit does not happen. When I open the ajax debug window, > > it looks like a request is made. > > > > Has anyone had issues with modal windows, form submission and firefox? > > > > Internet Explorer 7 works fine. > > > > Version of Wicket: 1.4.13 > > > > Here is the error in the debug window: > > > > RROR: Wicket.Ajax.Call.submitFormById: Trying to submit form with id > > 'calloutForm449' that is not in document. > > ERROR: Wicket.Ajax.Call.submitFormById: Trying to submit form with id > > 'calloutForm449' that is not in > > > > Pseduo Code: > > > > import > > org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow; > > ... > > > > > > final ModalWindow modalWindow = new ModalWindow( "modalWindow"); final > > > Panel basicPanel = new BasicPanel( modalWindow.getContentId()); > > > > modalWindow.setInitialWidth( 600 ); > > mainPanel.add(modalWindow); > > modalWindow.setContent(basicPanel); > > > > > > ... > > > > public class BasicPanel extends Panel { > > > > public BasicPanel(final String id) { > > ... > > final Form form = new Form("calloutForm"); > > add(form); > > } > > } > > > > ** Panel for Modal Window Markup: > > > > <form wicket:id="calloutForm"> > > ... > > </form> > > > > > > ** Output from ajax debug window. > > > > The form looks like it is available. > > > > <div id="feedback4d7" style="display:none"></div> <form > > id="calloutForm4d8" method="post" > > action="?wicket:interface=:10:contentPanelContainer:contentPanel:panel > > :m odalWindow:content:calloutForm::IFormSubmitListener::" ><div > > style="width:0px;height:0px;position:absolute;left:-100px;top:-100px;o > > ve rflow:hidden"><input type="hidden" name="calloutForm4d8_hf_0" > > id="calloutForm4d8_hf_0" /></div> > > <fieldset> > > <table cellspacing="0" cellpadding="0" style="width: auto;" > > class="content_panel_table"> > > <tbody> > > ... > > .... > > </form> > > </div> > > > > > > > > > > > -- > Pedro Henrique Oliveira dos Santos > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pedro Henrique Oliveira dos Santos