On 8-Feb-08, at 11:23 AM, Theodore Petrosky wrote:

I have a WOCheckBox in my Component and I am trying to
bind it back to the app. I have this in my WOD

HTML
<webobject name="allOrOpenOnlyCheckBox" />


WOD
allOrOpenOnlyCheckBox: WOCheckBox {
   checked = allAdsBool;
}


And this in my .java:

public Boolean allAdsBool;

public Boolean allAdsBool() {
        return allAdsBool;
}

public void setAllAdsBool(Boolean newBool)
{
        NSLog.out.appendln("setAllAdsBool = " + newBool);
        allAdsBool = newBool;
}

If I click the checkbox on the rendered page, the
setter is not called. What am I doing wrong?


Stupid question Tom: Is your WOCheckbox in a form and are you submitting the form?

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org


_______________________________________________
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