AjaxObserveField
AjaxObserveField
- Subject: AjaxObserveField
- From: Dawn Lockhart <email@hidden>
- Date: Tue, 18 Mar 2008 17:36:02 -0400
- Thread-topic: AjaxObserveField
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden