Inline-Bindings, Integer Values
Inline-Bindings, Integer Values
- Subject: Inline-Bindings, Integer Values
- From: Thomas Grass <email@hidden>
- Date: Sun, 14 Sep 2014 21:50:19 +0200
Hi to all,
what is the right way to bind Integer values with inline bindings?
I tried to bind 0 (zero) like this to a radio button:
<wo:radioButton value = "0" selection="$addType" name="addType" />
The problem is, that the number „0“ as value is not allowed, because it is in this case a string. The following exception will be displayed:
"While trying to set the field "addType" on an object of type at.sampleproject.components.Sample we expected a java.lang.Integer but received a java.lang.String with a value of 0. This often happens if you forget to use a formatter."
How can i tell the inline-bindings that 0 should be an Integer and not a String? I know that it would be possible to add 0 to a int-variable in the javaclass (f.e. int zero = 0;) and bind it with value=„$zero“ to it. But this is a thing I want to avoid.
Thanks a lot,
Thomas |
_______________________________________________
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