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;ove > 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