• 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: ERXOptGroupPopupButton vs List?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXOptGroupPopupButton vs List?


  • Subject: Re: ERXOptGroupPopupButton vs List?
  • From: Aaron Rosenzweig via Webobjects-dev <email@hidden>
  • Date: Mon, 4 Aug 2025 17:54:26 -0400

I guess you could consider it a bug but I wouldn’t fight it. In your binding
convert the ArrayList to an NSArray :-)

> On Aug 3, 2025, at 7:17 PM, Paul Hoadley via Webobjects-dev
> <email@hidden> wrote:
>
> On 4 Aug 2025, at 02:11, Ondra Cada via Webobjects-dev
> <email@hidden> wrote:
>
>> whatever I try, it looks like ERXOptGroupPopupButton does not support lists
>> like other list bindings do, and insists on an NSArray instead, yielding for
>> other lists
>>
>> java.util.ArrayList cannot be cast to com.webobjects.foundation.NSArray
>> (ClassCastException)
>>
>> Is this a Wonder-side bug, or do I overlook something of importance?
>
> It certainly does look like ERXOptGroupPopupButton attempts an explicit cast
> to NSArray right here:
>
> https://github.com/wocommunity/wonder/blob/11e2f351eb6caed2071bcaf1db6396d31e1a8169/Frameworks/Core/ERExtensions/Sources/com/webobjects/appserver/_private/ERXOptGroupPopupButton.java#L86
>
> <https://github.com/wocommunity/wonder/blob/11e2f351eb6caed2071bcaf1db6396d31e1a8169/Frameworks/Core/ERExtensions/Sources/com/webobjects/appserver/_private/ERXOptGroupPopupButton.java#L86>
>
>
> --
> Paul Hoadley
> https://logicsquad.net/
> https://www.linkedin.com/company/logic-squad/
>
> _______________________________________________
> 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

  • Follow-Ups:
    • Re: ERXOptGroupPopupButton vs List?
      • From: OCsite via Webobjects-dev <email@hidden>
References: 
 >ERXOptGroupPopupButton vs List? (From: Ondra Cada via Webobjects-dev <email@hidden>)
 >Re: ERXOptGroupPopupButton vs List? (From: Paul Hoadley via Webobjects-dev <email@hidden>)

  • Prev by Date: Re: ERXOptGroupPopupButton vs List?
  • Next by Date: Re: ERXOptGroupPopupButton vs List?
  • Previous by thread: Re: ERXOptGroupPopupButton vs List?
  • Next by thread: Re: ERXOptGroupPopupButton vs List?
  • Index(es):
    • Date
    • Thread