Thanks!

I've patched the patch meantime instead (using my own subclass which overrides 
appendChildrenToResponse, and before super, it fixes the _list binding). If I 
simply changed the binding, I am pretty sure I would forget in a month or so, 
and it would raise its head and bite me in my tender parts again later, when I 
use the component the next time :)

All the best,
OC

> On 4. 8. 2025, at 23:54, Aaron Rosenzweig via Webobjects-dev 
> <webobjects-dev@lists.apple.com> wrote:
> 
> 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 <mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> On 4 Aug 2025, at 02:11, Ondra Cada via Webobjects-dev 
>> <webobjects-dev@lists.apple.com <mailto: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
>> 
>> 
>> -- 
>> 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 
>> <mailto: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/ocs%40ocs.cz
> 
> This email sent to o...@ocs.cz

 _______________________________________________
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