Re: WOCheckBox to my instance
Re: WOCheckBox to my instance
- Subject: Re: WOCheckBox to my instance
- From: Theodore Petrosky <email@hidden>
- Date: Fri, 8 Feb 2008 10:48:05 -0800 (PST)
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