• 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: WOCheckBox to my instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOCheckBox to my instance


  • Subject: Re: WOCheckBox to my instance
  • From: David LeBer <email@hidden>
  • Date: Fri, 8 Feb 2008 13:07:47 -0500


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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: WOCheckBox to my instance
      • From: Theodore Petrosky <email@hidden>
    • Re: WOCheckBox to my instance
      • From: Theodore Petrosky <email@hidden>
References: 
 >WOCheckBox to my instance (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: AW: WOCheckBox to my instance
  • Next by Date: Re: WOCheckBox to my instance
  • Previous by thread: Re: WOCheckBox to my instance
  • Next by thread: Re: WOCheckBox to my instance
  • Index(es):
    • Date
    • Thread