I'm have a WOPopupButton, GradeLevelField, that when the value in it is
changed, I need to change the list of another WOPopupButton, CourseField.
I've figured out enough to know that I need an AjaxObserveField observing
the first button, but can't get it to perform the action that reloads the
second button.

<wo:form multipleSubmit = "$yes">
    <webobject name = "GradeLevelField"/>
    <webobject name = "GradeLevelObserveField"/>

    <wo:AjaxUpdateContainer id = "$courseUpdateID">
        <webobject name = "CourseField"/>
    </wo:AjaxUpdateContainer>
</wo:form>
....

GradeLevelField : WOPopUpButton {
    list = gradeLevels;
   item = gradeLevel;
   displayString = gradeLevel.name;

    selectedValue = selectedGradeLevel;
   id = gradeLevelFieldID;
   noSelectionString = "Select a Grade Level...";

}

GradeLevelObserveField : AjaxObserveField {
    observeFieldID = "GradeLevelField";
   updateContainerID = courseUpdateID;
   fullSubmit = false;
 
  action = selectGradeLevel;

}



CourseField : WOPopUpButton {

    list = courses;
   item = course;
   displayString = course.name;
   selectedValue = selectedCourse;

}



If I add 
otherTagString = "onChange='this.form.submit();'";
to the GradeLevelField, it submits the form, but the observe field's action
is never called. How do I activate the observe field?

Dawn

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to