So an agent can have multiple organizations that they manage. The entity ManagedOrgAssoc is an associative entity containing a personIdentifier and an organizationIdentifier. The relationship from agents to ManagedOrgAssoc is tomany, the relationship from ManagedOrgAssoc to organization is to one.
both of these attributes (personIdentifier and organizationIdentifier) are primary keys in their respective entities.
I want to use a WOToManyRelationship control.
When I do this the wo relationship does not even display in the form.
When I do this the WO relationship does display and shows the correct listing of data that a user should choose from. But if I select one (or many) and press save, saving changes to the EO, i get the error java.lang.ClassCastException: com.webobjects.eocontrol._EOCheapCopyMutableArray. I have included the stacktrace at the end of this message.
Is this something I have done wrong? Thanks for all your help.
WOToManyRelationship.java 345 updateSourceObject com.webobjects.woextensions
WOToManyRelationship.java 421 setSelections com.webobjects.woextensions
NativeMethodAccessorImpl.java NA invoke0 sun.reflect
NativeMethodAccessorImpl.java 39 invoke sun.reflect
DelegatingMethodAccessorImpl.java 25 invoke sun.reflect
Method.java 585 invoke java.lang.reflect
NSKeyValueCoding.java 688 setMethodValue com.webobjects.foundation
NSKeyValueCoding.java 1175 setValueInObject com.webobjects.foundation
NSKeyValueCoding.java 1293 takeValueForKey com.webobjects.foundation
WOComponent.java 1550 takeValueForKey com.webobjects.appserver
NSKeyValueCoding.java 519 takeValueForKey com.webobjects.foundation
NSValidation.java 733 validateTakeValueForKeyPath com.webobjects.foundation
WOComponent.java 1273 validateTakeValueForKeyPath com.webobjects.appserver
WOKeyValueAssociation.java 71 setValue com.webobjects.appserver._private
WOBrowser.java 153 _fastTakeValuesFromRequest com.webobjects.appserver._private
WOBrowser.java 168 takeValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 81 takeChildrenValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 89 takeValuesFromRequest com.webobjects.appserver._private
WOConditional.java 41 takeValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 81 takeChildrenValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 89 takeValuesFromRequest com.webobjects.appserver._private
WOComponent.java 914 takeValuesFromRequest com.webobjects.appserver
WOComponentReference.java 97 takeValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 81 takeChildrenValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 89 takeValuesFromRequest com.webobjects.appserver._private
WOComponentContent.java 20 takeValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 81 takeChildrenValuesFromRequest com.webobjects.appserver._private
WOGenericContainer.java 17 takeValuesFromRequest com.webobjects.appserver._private
WOComponent.java 914 takeValuesFromRequest com.webobjects.appserver
WOComponentReference.java 97 takeValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 81 takeChildrenValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 89 takeValuesFromRequest com.webobjects.appserver._private
WOComponentContent.java 20 takeValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 81 takeChildrenValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 89 takeValuesFromRequest com.webobjects.appserver._private
WOConditional.java 41 takeValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 81 takeChildrenValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 89 takeValuesFromRequest com.webobjects.appserver._private
WOComponent.java 914 takeValuesFromRequest com.webobjects.appserver
WOComponentReference.java 97 takeValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 81 takeChildrenValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 89 takeValuesFromRequest com.webobjects.appserver._private
WOForm.java 70 takeValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 81 takeChildrenValuesFromRequest com.webobjects.appserver._private
WODynamicGroup.java 89 takeValuesFromRequest com.webobjects.appserver._private
WOComponent.java 914 takeValuesFromRequest com.webobjects.appserver
WOSession.java 1139 takeValuesFromRequest com.webobjects.appserver
WOApplication.java 1350 takeValuesFromRequest com.webobjects.appserver
WOComponentRequestHandler.java 189 _dispatchWithPreparedPage com.webobjects.appserver._private
WOComponentRequestHandler.java 287 _dispatchWithPreparedSession com.webobjects.appserver._private
WOComponentRequestHandler.java 322 _dispatchWithPreparedApplication com.webobjects.appserver._private
WOComponentRequestHandler.java 358 _handleRequest com.webobjects.appserver._private
WOComponentRequestHandler.java 435 handleRequest com.webobjects.appserver._private
WOApplication.java 1306 dispatchRequest com.webobjects.appserver
SPApplication.java 210 dispatchRequest com.webobjects.security
Application.java 124 dispatchRequest com.psgs.dodig.dwtm
WOWorkerThread.java 173 runOnce com.webobjects.appserver._private
WOWorkerThread.java 254 run com.webobjects.appserver._private
Thread.java 613 run java.lang