Re: WORepetition error
Re: WORepetition error
- Subject: Re: WORepetition error
- From: Art Isbell <email@hidden>
- Date: Mon, 26 Apr 2004 11:14:25 -1000
On Apr 26, 2004, at 10:52 AM, Art Isbell wrote:
On Apr 26, 2004, at 9:36 AM, Randall Perry wrote:
I've passed an NSArray, logInfo, of EO objects from a Direct Action
to a
result page. The result page has a WORepetition with the NSArray as
list,
and and EO Object, logInfoItem, as the list item.
I'm getting this error when the page loads:
java.lang.IllegalArgumentException: While trying to invoke the set
method
"public void ResultPage.setLogInfoItem(Log)" on an object of type
ResultPage
we received an argument of type
com.webobjects.eocontrol._EOCheapCopyMutableArray. This often happens
if you
forget to use a formatter.
What's this mean?
It might mean that logInfo is an array of _EOCheapCopyMutableArrays
instead of an array of simple EO's. This can happen if logInfo was
created by sending an array of EO's a valueForKey() message with a
to-many relationship key as the argument. If this is the case, you
must iterate through the array of EO's adding the to-many relationship
objects to a new array, probably only if they're not already in the
new array.
To clarify, instead of sending the array of EO's a valueForKey()
message, you must iterate through it the old-fashioned way.
Aloha,
Art
_______________________________________________
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.