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 protected]> 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 protected]
> <mailto:[email protected]>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com
> <https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com>
>
> This email sent to [email protected] <mailto:[email protected]>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]