Re: Weird CheckBox Bug ??
Re: Weird CheckBox Bug ??
- Subject: Re: Weird CheckBox Bug ??
- From: Elizabeth Lynch <email@hidden>
- Date: Mon, 30 Aug 2004 11:34:54 +0100
Owen
However if I unselected ALL the checkbox's that had been selected and
submit the page, the page reloads and nothing has changed, they are
still ticked. In fact in this case the setAssSubCatSelected method
doesn't even appear to be called, in that my "This method is actually
being called" System.out.println is not printed.
Any ideas on why when all my checkboxes are unchecked the method
doesn't get called ?
When you have nothing but checkboxes within a form, then when you
untick the final box the form has nothing to Submit - and submitting an
empty form has no effect. You can fix this by adding a dummy textfield
within your form so that your Submit has something to actually submit.
Add a Textfield, keep it Static, give it content and a name (eg
DummyText, DummyField) and make it Hidden.
There may be more elegant ways to deal with this, but this is simple
and works fine for me.
Liz
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.