• 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: AjaxObserveField Update Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxObserveField Update Error


  • Subject: Re: AjaxObserveField Update Error
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 11 May 2011 13:37:57 -0700 (PDT)

yes, but who is updating that list? I would suggest putting an implicit update in the action binding of the AOF that updates the list.

when the popup is observed to change, fire the action with the new selection of the popup.

Do you have accessors for all the bindings? You could put NSLogs in the setters and see what is happening when.

JMHO

Ted

--- On Wed, 5/11/11, Raghavender Bokka <email@hidden> wrote:

> From: Raghavender Bokka <email@hidden>
> Subject: Re: AjaxObserveField Update Error
> To: "Theodore Petrosky" <email@hidden>
> Cc: email@hidden
> Date: Wednesday, May 11, 2011, 3:41 PM
> Hi Ted,
>
> Without the action to the AOF I am also able to update the
> list of Browser2, but the update is happening only for the
> first time.
>
> Regards,
> Raghu.
>
> On 12-May-2011, at 12:56 AM, Theodore Petrosky wrote:
>
> > My guess is that when you fire the AOF, it should have
> an action to update the list of Browser2
> >
> > currently when you fire the AUC, the list is null.
> >
> > Just a guess.
> >
> >
> >
> >> Date: Wed, 11 May 2011 23:37:37 +0530
> >> From: Raghavender Bokka <email@hidden>
> >> Subject: AjaxObserveField Update Error
> >> To: Development WebObjects <email@hidden>
> >
> >>
> >> Hi,
> >>
> >> I am trying to update a selection list when a
> value in the
> >> drop down list is changed.  I am using
> >> "AjaxObserveField" and "AjaxUpdateContainer"
> components to
> >> achieve this functionality.  But when I
> change the
> >> value in the drop down list then the entire
> components or
> >> elements existing in the Ajax Update Container div
> are
> >> getting cleared off.  It is showing "500
> Error" in the
> >> browser error console.
> >>
> >> Following is the code snippet:
> >> ------------------------------------WOD Code
> >> Snippet------------------------------------
> >> PopUpButton1: WOPopUpButton {
> >>     id = "YearFieldID";
> >>     list = yearList;
> >>     displayString =
> currentYear.desc;
> >>     item = currentYear;
> >>     selection = selectedYear;
> >> }
> >>
> >> YearObserveField : AjaxObserveField {
> >>     observeFieldID =
> "YearFieldID";
> >>     updateContainerID =
> "TeacherDiv1";
> >>     fullSubmit = false;
> >> }
> >>
> >> TeacherUpdateComponent : AjaxUpdateContainer {
> >>     id = "TeacherDiv1";
> >> }
> >>
> >> Form1: WOForm
> >> {
> >>     multipleSubmit = true;
> >> }
> >> ------------------------------------WOD Code
> >> Snippet------------------------------------
> >> ------------------------------------HTML Code
> >> Snippet------------------------------------
> >> <WEBOBJECT name=Form1>
> >>
> >> <WEBOBJECT
> NAME=PopUpButton1></WEBOBJECT>
> >>
> >> <WEBOBJECT name =
> >> "YearObserveField"></WEBOBJECT>
> >>
> >> <WEBOBJECT
> name="TeacherUpdateComponent"> 
> >>     <WEBOBJECT
> >> NAME=Browser2>   
> >> </WEBOBJECT>
> >>
> >> </WEBOBJECT>
> >> ------------------------------------HTML Code
> >> Snippet------------------------------------
> >>
> >> Thanks for any suggestions.
> >>
> >> Regards,
> >> Raghu.
> >
> >
>
>
>
 _______________________________________________
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

  • Follow-Ups:
    • Re: AjaxObserveField Update Error
      • From: Raghavender Bokka <email@hidden>
References: 
 >Re: AjaxObserveField Update Error (From: Raghavender Bokka <email@hidden>)

  • Prev by Date: Re: database design patterns for the desperate
  • Next by Date: Re: database design patterns for the desperate
  • Previous by thread: Re: AjaxObserveField Update Error
  • Next by thread: Re: AjaxObserveField Update Error
  • Index(es):
    • Date
    • Thread