Hi Zac,

Your HTML should look like this

<webobject name="Form1">
<webobject name="CheckBox1"></webobject>
<webobject name="SubmitButton1"></webobject>
</webobject>

Wod file:

CheckBox1: WOCheckBox {
checked = aBoolean;
}


Java File:

 public boolean aBoolean;



However  if the form only contains checkboxes an none of them are checked the form does not post any vales back to the server resulting in all the values remaining as is.
To overcome this insert a HiddenField on the form e.g

<input type="hidden" name="blah" value="blah">

Regards
Dave


On 21/07/2006, at 9:27 AM, Zac Konopa wrote:

Okay all,

I'm having a weird problem and I think it's a result of not having a clear understanding of the working of all the bindings involved.  I've got a WOCheckBox.  I have bound to it's checked attribute a primitive boolean value.  Said boolean is set to "true" when the page is instantiated.  The page is accurately displayed with the check box checked.  If I leave the boxes alone the boolean variable retains it's "true" state.  When I uncheck the box as I understand it the boolean should be assigned the value "false".  Instead I'm getting a null value in my boolean.  Am I misunderstanding the use of the checked binding for WOCheckBox or do I need to look elsewhere in my code?

Thanks,

Zac
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to