• 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: Values in URL for WOCheckBox?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Values in URL for WOCheckBox?


  • Subject: Re: Values in URL for WOCheckBox?
  • From: John Pollard <email@hidden>
  • Date: Tue, 17 Mar 2015 11:19:39 +0000

Thanks Chuck,

What I have is:

nextOptionalExtraCheckBox: WOCheckBox {
    checked = isNextOptionalExtraSelected;
    name = getNextOptionalExtraCheckBoxName;
}

If I add value = true; I get an error:

- exactly one of “checked” or “value” must be bound.

I am struggling to juggle a combination of settings that starts with unchecked boxes and puts any checked ones to a value of 1/true.
As I say though it doesn’t actually matter as unchecked ones don’t get passed in the DA call, so I just detect presence.

John

On 13 Mar 2015, at 17:18, Chuck Hill <email@hidden> wrote:

Hi John,

It has been a while, but I think you want to bind
value = true;

value
Value of this input element. If not specified, WebObjects provides a default value.


Chuck


On 2015-03-13, 3:27 AM, "John Pollard" wrote:

Hi List,

I have a direct action method called from a form submission, where the form includes WOCheckBox. I note that if the check boxes start unselected, then any that are selected prior to the form submission appear in the direct action url like this:

si_218515=0.0.23.5.1.20.0.6.5.1.5.7.1.1.1

Where si_218515 is the name I assigned to the WOCheckBox

I would have expected a value of true/false or 1/0. What am I actually getting with 0.0.23.5.1.20.0.6.5.1.5.7.1.1.1 and can I change it to be something shorter, as all I care about is whether a check box is selected.

In fact I can work on the presence or absence of any value as unchecked boxes are omitted, but it would be nice to shorten the url and ideally have a true or false.

Thanks
John


_______________________________________________
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

References: 
 >Values in URL for WOCheckBox? (From: John Pollard <email@hidden>)
 >Re: Values in URL for WOCheckBox? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: ObjectNotAvailableException vs NSKeyValueCoding$Null
  • Next by Date: Re: ObjectNotAvailableException vs NSKeyValueCoding$Null
  • Previous by thread: Re: Values in URL for WOCheckBox?
  • Next by thread: Redirect vs mod_webobjects
  • Index(es):
    • Date
    • Thread