Re: WOBrowser Error java.lang.UnsupportedOperationException: addAll is not a supported operation in com.webobjects.foundation.NSArray
Re: WOBrowser Error java.lang.UnsupportedOperationException: addAll is not a supported operation in com.webobjects.foundation.NSArray
- Subject: Re: WOBrowser Error java.lang.UnsupportedOperationException: addAll is not a supported operation in com.webobjects.foundation.NSArray
- From: Klaus Berkling <email@hidden>
- Date: Mon, 05 Sep 2011 09:37:15 -0700
Hi.
What happens when you set all your arrays for the WOBrowser to an empty array and not null?
I had a similar exception and set the 'list' and 'selections' arrays to new NSArray(); when I initialized the component class. You would have to do it for all your WOBrowsers.
On Sep 5, 2011, at 12:58 AM, pavan.jayam wrote:
Hi List,
I am using WOBrowser to select multiple objects.
For ex: WOBrowser 1 contains state objects, if any of the state
selected(moved to WOBrowser2 ) i am displaying Districts for that state
in the WOBrowser 3. To move state object from WOBrowser1 to WOBrowser2
i am using WOImageButton.
First time i am able to select/move a single or multiple states from
WOBrowser1 to WOBrowser2, but after displaying districts in WOBrowser3
, i tried to select/move a single district or if i tried to select/move
another state from WOBrowser1 to WOBrowser2, it throws the following
exception:
java.lang.UnsupportedOperationException: addAll is not a supported
operation in com.webobjects.foundation.NSArray
If i am not displaying district WOBrowsers on selecting the state then
i am able to select/move single or multiple states from WOBrowser1 to
WOBrowser2 and viceversa.
Exception : java.lang.UnsupportedOperationException: addAll
is not a supported operation in com.webobjects.foundation.NSArray
[2011-9-5 3:18:43 EDT] <WorkerThread13>
java.lang.UnsupportedOperationException: addAll is not a supported
operation in com.webobjects.foundation.NSArray
at com.webobjects.foundation.NSArray.addAll(NSArray.java:917)
at
er.extensions.foundation.ERXPatcher$DynamicElementsPatches$Browser.setSelectionListInContext(ERXPatcher.java:533)
at
com.webobjects.appserver._private.WOBrowser._fastTakeValuesFromRequest(WOBrowser.java:123)
at
com.webobjects.appserver._private.WOBrowser.takeValuesFromRequest(WOBrowser.java:138)
at
com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
at
com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
at
com.webobjects.appserver._private.WOConditional.takeValuesFromRequest(WOConditional.java:79)
at
com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
at
com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
at
er.extensions.components._private.ERXWOForm.takeValuesFromRequest(ERXWOForm.java:311)
at
com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
at
com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
at
com.webobjects.appserver.WOComponent.takeValuesFromRequest(WOComponent.java:1051)
at
er.extensions.components.ERXComponent.takeValuesFromRequest(ERXComponent.java:93)
at
com.webobjects.appserver.WOSession.takeValuesFromRequest(WOSession.java:1331)
at
er.extensions.appserver.ERXSession.takeValuesFromRequest(ERXSession.java:541)
at
com.webobjects.appserver.WOApplication.takeValuesFromRequest(WOApplication.java:1724)
at
er.extensions.appserver.ajax.ERXAjaxApplication.takeValuesFromRequest(ERXAjaxApplication.java:78)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:199)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984)
at
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1949)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:619)
Please suggest how to use more than 2 WOBrowsers in the same page.
Regards,
JPK.
kib
"The trouble with normal is it always gets worse." Bruce Cockburn
Klaus Berkling Web Application Dev. & Systems Administrator DynEd International, Inc.
|
_______________________________________________
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