Tim,

You have to place your modal window within a form. It's mandatory if you
want to use Forms on a modal. 

You have to write code similar to the following:

<form wicket:id="outerForm">
     <div wicket:id="modalWithTabs">modal placeholder</div>
</form>

Form outerForm =new Form("outerForm");
ModalWindowmodalWithTabs  = new ModalWindow("modalWithTabs");
...
outerForm.add(modalWithTabs);
add(outerForm);

cheers,
Marcin 


Help System wrote:
> 
> Hi,
> 
> I have an AjaxTabbedPanel in a ModalWindow.  There are two tabs, each
> containing a panel with a simple form.
> 
> Looking at the html produced, the AjaxTabbedPanel moves the <form> element
> from the place in the panel to near the top of the tabbed panel html
> hierarchy and changes the id.  All form elements are then part of the new
> tabbed panel form.
> 
> The first tab works OK but the second tab fails to return from an
> AjaxSubmit.  The error shown in the debug window is
> 
> *ERROR: *
> Wicket.Ajax.Call.submitFormById: Trying to submit form with id
> 'form3f' that is not in document.
> 
> The panels and forms work fine when not displayed in the tabbed panel.
> 
> Can anyone tell me what I'm doing wrong please?
> 
> Using Wicket 1.4
> 
> Thanks,
> Tim
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AjaxTabbedPanel-with-different-forms-on-each-tab-tp25044965p25049550.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to