• 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
Inline-Bindings, Integer Values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Inline-Bindings, Integer Values
      • From: Paul Hoadley <email@hidden>
    • Re: Inline-Bindings, Integer Values
      • From: Fabian Peters <email@hidden>
  • Prev by Date: Re: EOCustomObject valueForKey avoiding infinite recursion
  • Next by Date: Re: Inline-Bindings, Integer Values
  • Previous by thread: Re: maven.wocommunity.org is down
  • Next by thread: Re: Inline-Bindings, Integer Values
  • Index(es):
    • Date
    • Thread