Re: WOCheckBox to my instance
Re: WOCheckBox to my instance
- Subject: Re: WOCheckBox to my instance
- From: Ryan Klems <email@hidden>
- Date: Fri, 8 Feb 2008 12:10:55 -0700
So your checkbox is in a form, is the form actually submitting? e.g.
is there an onClick() on the checkbox to submit the form, or a submit
button that you are pressing? Also, is this a direct action or a
component action form, if its a direct action, you have to manage the
value on your own.
-Ryan
On Feb 8, 2008, at 11:48 AM, Theodore Petrosky wrote:
Interesting, when I put
public ListOfAds(WOContext context) {
super(context);
allAdsBool = true;
}
the checkbox shows up as checked... but when I click
it to remove the check the setter is not firing.
Ted
into the
--- David LeBer <email@hidden> wrote:
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
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
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
_______________________________________________
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