• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AjaxTabbedPanel ??? V2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: AjaxTabbedPanel ??? V2 (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: AjaxTabbedPanel ??? V2
  • Next by Date: Re: Qualifier help with ERXToManyQualifier (? or an alternative)
  • Previous by thread: Re: AjaxTabbedPanel ??? V2
  • Next by thread: Plugins system?
  • Index(es):
    • Date
    • Thread