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 protected]> wrote: > From: Chuck Hill <[email protected]> > Subject: Re: AjaxTabbedPanel ??? V2 > To: "Alexis Tual" <[email protected]> > Cc: "Theodore Petrosky" <[email protected]>, "[email protected] > List" <[email protected]> > 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 protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
