Re: ERXOptGroupPopupButton vs List?
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