• 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: WO5.4 WOPopupButton wanting formatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO5.4 WOPopupButton wanting formatter


  • Subject: Re: WO5.4 WOPopupButton wanting formatter
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 28 Jul 2008 11:38:42 -0700


On Jul 19, 2008, at 4:26 AM, Lachlan Deck wrote:

On 19/07/2008, at 4:59 PM, Shelley Eitzen wrote:

you are correct, one value was an Integer and the other a String, so technically our app is at fault.
So is it a bug to report because it works under 5.3 but not under 5.4?

I believe in the past WO would auto-convert the string to an integer if that's what the setter needed. But certainly it's inconsistent, at the least, using mixed value types in the array.

I thought that KVC would do this conversion. It is a change that breaks existing code, so I would file a bug.


Chuck





Chuck Hill wrote:

On Jul 17, 2008, at 10:54 PM, Shelley Eitzen wrote:

Hi All,

We have just upgraded to WO5.4.

When the app is run, we have component we use for date entry with 3 popups for year, month and day.The component can not be displayed and gives the following error

java.lang.IllegalArgumentException: While trying to set the field "aDay" on an object of type WNSDateEntryWidget we expected a java.lang.Integer but received a java.lang.String with a value of 1. This often happens if you forget to use a formatter.
at com.webobjects.foundation.NSKeyValueCoding $_FieldBinding.setValueInObject(NSKeyValueCoding.java:1019)
at com.webobjects.foundation.NSKeyValueCoding $_NumberFieldBinding.setValueInObject(NSKeyValueCoding.java:1048)
at com.webobjects.foundation.NSKeyValueCoding $DefaultImplementation.takeValueForKey(NSKeyValueCoding.java:1354)
at com .webobjects .appserver.WOComponent.takeValueForKey(WOComponent.java:1748)



Any suggestions?


File a bug if this is a change from 5.3.3: bugreport.apple.com. A lot has changed on WOPopupButton. Try making the list it is bound to a list of Integers instead of a list of strings.

Chuck



_______________________________________________ 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

with regards, --

Lachlan Deck



_______________________________________________
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


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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: 
 >WO5.4 WOPopupButton wanting formatter (From: Shelley Eitzen <email@hidden>)
 >Re: WO5.4 WOPopupButton wanting formatter (From: Chuck Hill <email@hidden>)
 >Re: WO5.4 WOPopupButton wanting formatter (From: Shelley Eitzen <email@hidden>)
 >Re: WO5.4 WOPopupButton wanting formatter (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: multiple model usage example
  • Next by Date: Re: DBEdit with MacIntel
  • Previous by thread: Re: WO5.4 WOPopupButton wanting formatter
  • Next by thread: Local debugging while offline
  • Index(es):
    • Date
    • Thread