Re: AjaxTabbedPanel ??? V2
Re: AjaxTabbedPanel ??? V2
- Subject: Re: AjaxTabbedPanel ??? V2
- From: Theodore Petrosky <email@hidden>
- Date: Mon, 17 Jan 2011 14:17:05 -0800 (PST)
Thanks for all the help pointing me in the right direction.
I now notice that the AjaxTabbedPanelDemo has bindings for isSelected for all the tabs, however, AjaxTabbedPanelInModalDialogExample does not.
Which explains why when I copied Form Value A: <webobject name = "FormValueA"/> to the B tab, the value for formValueA would not display in tab B.
binding isSelected fixes that.
Maybe someone could update the AjaxTabbedPanelInModalDialogExample example in the AjaxExamples.
JMHO
Ted
--- On Mon, 1/17/11, Chuck Hill <email@hidden> wrote:
> From: Chuck Hill <email@hidden>
> Subject: Re: AjaxTabbedPanel ??? V2
> To: "Alexis Tual" <email@hidden>
> Cc: "Theodore Petrosky" <email@hidden>, "email@hidden List" <email@hidden>
> Date: Monday, January 17, 2011, 4:33 PM
> Yes, that is probably what is
> happening!
>
> Thanks,
> Chuck
>
>
> On Jan 17, 2011, at 1:30 PM, Alexis Tual wrote:
>
> > As AjaxTabbedPanelTab is stateless (dynamic element)
> you should help him maintain its selected state by
> binding isSelected to a settable variable.
> > If you do not, it will appears selected on the client
> view, but will not be considered selected on the server side
> and thus may not takeValuesFromRequest when submitting your
> form, see AjaxTabbedPanelTab source :
> >
> > /**
> > * Do nothing if not visible.
> > */
> > public void
> takeValuesFromRequest(WORequest request, WOContext context)
> > {
> > if
> (isVisble(context.component()) && (isSelected
> == null || isSelected(context.component())) ) {
> >
>
> super.takeChildrenValuesFromRequest(request, context);
> > }
> > }
> >
> > Cheers,
> >
> > Alex
> >
> > Le 17 janv. 2011 à 21:59, Chuck Hill a écrit :
> >
> >>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden