Great, thanks Marcin.

It's a pitty that the panels have to be modified to work with ModalWindows
but hey, if it works...

Thanks again,
Tim

2009/8/19 Marcin Palka <marcin.pa...@gmail.com>

>
> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to