Try to set a break point in your remote call result event and see what is
returned.
If you run in debugger you might see some information like someobject[]
could not be converted to an ArrayCollection.

Also define your Products property in you AS class as Array and not
ArrayCollection.

João Fernandes


On 17/01/07, Battershall, Jeff <[EMAIL PROTECTED]> wrote:

  I've been using CFMX 7.02's ability translate CFCs to AS objects but
have noticed the following limitation:

If I have an array of objects (like CFCs) in my CFC/AS class def - these
will not translate over the wire and I'm forced to pull over the array
as a separate remoting request.

Example:
Catalog.cfc has an attribute products of type Product.cfc array.
<cfproperty name="Products" type="Product[]"/>
Catalog.as has an ArrayCollection of Product objects, i.e., public var
Products:ArrayCollection.

The rest of the CFC translates perfectly to my AS object instance, but
the ArrayCollection remains null and unpopulated, requiring a second
round trip to retreive the items.

Now I know I might be asking a lot to want direct and complete
translation including nested objects and such and possibly I'm not
understnding how to accomplish this currently - other than to work
around it as above.

Any input appreciated...

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED] <jeff.battershall%40dowjones.com>
(609) 520-5637 (p)
(484) 477-9900 (c)



--

João Fernandes

Reply via email to