Re: WOCheckBoxMatrix
Re: WOCheckBoxMatrix
- Subject: Re: WOCheckBoxMatrix
- From: Timo Hoepfner <email@hidden>
- Date: Wed, 16 Aug 2006 21:22:39 +0200
Am 16.08.2006 um 21:01 schrieb David Holt: 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?
Problem is, then when there are only Checkboxes on the form, which are deselected, it is interpreted as en empty form, which doesn't need to be submitted. Add an hidden field (static one should be enough) with some arbitrary value to it and everything will be fine. AFAIK this is a general HTML problem, not WO specific.
Timo
|
_______________________________________________
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