Re: AjaxObserveField and checkboxes
Re: AjaxObserveField and checkboxes
- Subject: Re: AjaxObserveField and checkboxes
- From: Johann Werner <email@hidden>
- Date: Wed, 04 May 2011 20:04:40 +0200
Hi Joe,
the observeFieldID in your example references the id of the enclosing span but should be–as the name implies–the id of the field to observe: the checkbox ;) remove the id from the span tag, put it into the bindings of the WOCheckBox and try again.
jw
Am 04.05.2011 um 19:39 schrieb Joe Little:
> I have some actions taken from an AjaxModalDialog, so it would figure
> that I need to use an AjaxObserveField to monitor checkboxes to change
> those values, as otherwise they are never received due to the AMD.
> What I've tried after reading the docs
> (http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/ajax/AjaxObserveField.html)
> leads me to this, but I'm not getting the togglePromoteWithAssign to
> fire.
>
>
> Here's my html:
>
> <span id="promoteAssign"><webobject
> name="PromoteWithAssignmentsCheckBox"/> with
> Assignments</span><webobject name="PromoteAssignObserveField"/>
>
> and the wod:
>
> PromoteAssignObserveField: AjaxObserveField {
> observeFieldID = "promoteAssign";
> action = togglePromoteWithAssign;
> }
>
> PromoteWithAssignmentsCheckBox: WOCheckBox {
> checked = promoteWithAssignments;
> }
_______________________________________________
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