A different approach is to use ajax enabled fields so that everytime
you leave an input field your changes are immediately applied to the
models. That way it doesn't matter at all which link you click
anywhere.

Eelco


On 3/29/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> well, this is pretty tricky stuff
>
> because you embed the form inside the tabbed panel it really shouldnt know
> anything about when the tab switches.
>
> one solution i might see is to embed the tabbed panel inside the form
> instead
> that way the links can submit the form and handle switching the tabs when
> appropriate (no errors).
>
> the tabbed panel has a factory method for the links it uses, so maybe you
> override that and create a formsubmitlink instead of the regular link.
>
> -Igor
>
>
>
> On 3/29/06, karthik Guru <[EMAIL PROTECTED]> wrote:
> > So you want to click on one tab ,  and that should actually result in
> > the form submit?
> > wicket extensions TabbedPanel uses Link and not SubmitLink.
> > So when you click on a tab , it does not submit your form and hence
> > you lose out on the data.
> >
> > -----------------------------------
> >
> > Igor,
> >
> > I'm just thinking out loud ..so all this might be stupid.
> > Anyways , Is this correct -
> >
> > Get TabbedPanel to use SubmitLink instead of Link.
> > and SubmitLink.onSubmit() call getForm.process( )  --> this should
> > update his form
> > But since SubmitLink can be used only within a Form, the tabbed panel
> > has to be added within a Form? - That is something Stefan has to
> > ensure?
> >
> > -----------------------------------
> >
> > Also, I guess in  ITab.getPanel( ) , you have to ensure that you
> > return the Panel that you submitted earlier using SubmitLink and not a
> > new one as it is done normally.
> >
> >
> >
> > On 3/29/06, Stefan Lindner <[EMAIL PROTECTED]> wrote:
> > > I use Wicket 1.2beta2 and I have the followin question:
> > > I have a TabbedPanel with several tabs (according to the example). Each
> Panel contains an InputForm. Weh I change from one pane to another by
> klicking at the tab label I receive no onSubmit event and the input is lost.
> is there a way to make the tab label act as a submit button for the form?
> Oder is there any other mechanism to do such things?
> > > Thanks in advance and thaky you for Wickt.
> > >
> > >
> >
> >
> > --
> > -- karthik --
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to