problem setting list for a WOBrowser
problem setting list for a WOBrowser
- Subject: problem setting list for a WOBrowser
- From: Andreas Kosmala <email@hidden>
- Date: Thu, 15 Jan 2004 15:38:39 +0100
Hi All,
I have a WOBrowser where "list" is bound to an NSMutableArray "entries"
und "selections" is bound to an NSMutableArray "selectedEntities".
Everything works fine except when I try to change the "entries": if a
formerly selected entry is removed I get an "Array is empty"-exception:
[2004-01-15 15:33:00 CET] <WorkerThread11>
java.lang.IllegalArgumentException: Array is empty
at com.webobjects.foundation.NSArray.objectAtIndex(NSArray.java:488)
at
com.webobjects.appserver._private.WOBrowser._fastTakeValuesFromRequest(WOBrowser.java:144)
at
com.webobjects.appserver._private.WOBrowser.takeValuesFromRequest(WOBrowser.java:168)
at
com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:81)
at
com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:89)
at
com.webobjects.appserver.WOComponent.takeValuesFromRequest(WOComponent.java:914)
...
The reason seems to be that WO first reads the new list ("entries") when
the selections ("selectedEntities") still contain the now removed entry.
Any idea to solve this, e.g. make WO read the "selections" BEFORE
reading the "list"?
TIA
andreas
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.