• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Weird CheckBox Bug ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Weird CheckBox Bug ?? (From: Owen McKerrow <email@hidden>)

  • Prev by Date: External app crashing without ssh login
  • Next by Date: Re: Does anyone use 4th Dimension
  • Previous by thread: Weird CheckBox Bug ??
  • Next by thread: External app crashing without ssh login
  • Index(es):
    • Date
    • Thread