Am 05.09.2011 um 09:58 schrieb pavan.jayam: > 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
That error suggests that you want to add objects to an NSArray. An NSArray is immutable thus the error 'not supported'. You should use NSMutableArrays. jw > 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. > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
