Re: WOCheckBoxMatrix
Re: WOCheckBoxMatrix
- Subject: Re: WOCheckBoxMatrix
- From: Chuck Hill <email@hidden>
- Date: Wed, 16 Aug 2006 12:18:51 -0700
Known bug in check boxes. If there are only checkboxes in a form and
none are checked, WO skips takeValues. Add a dummy hidden field to
force takeValues to happen.
Chuck
On Aug 16, 2006, at 12:01 PM, David Holt wrote:
Hello all,
I have a WOCheckBoxMatrix component in a WOTabPanel so that I can
set a many to many relationship (Users <--> Events). Once any item
has been selected and saved (i.e. created a relationship between
two EOs), I can't deselect all the items and leave an empty array.
Items can be added and removed so long as there is always one
checkbox selected. When I de-select all the checkboxes it doesn't
delete the relationships, it continues displaying the last array of
items after I save changes (nothing is written to the database).
Has anyone else seen this?
Here are my bindings for edit:
EventCheckboxMatrix: WOCheckboxMatrix { maxColumns = 1;
item = anEvent;
list = eventDisplayGroup.allObjects;
selections = session.user.events;
}
for display:
EventList: WORepetition {
item = anEvent;
list = session.user.events;
}
EventTitle: WOString {
value = anEvent.event_title;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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