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 
> <webobjects-dev@lists.apple.com> wrote:
> 
> On 4 Aug 2025, at 02:11, Ondra Cada via Webobjects-dev 
> <webobjects-dev@lists.apple.com> 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      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com
> 
> This email sent to aa...@chatnbike.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to