I got a problem that I cannot resolve by googleing. I need your expertise:
Here s the part of the story:
1 Bdc have many BdcDetails, so in Flex Bdc.as ==> public var bdcdetails:ArrayCollection; in Java Bdc.java ==> private Set<BdcDetails> bdcdetails = new HashSet<BdcDetails>();
It works perfectly in Flex which means Flex understand what is inside a Java HashSet. But when a Bdc is sent to Java. Java don't understand what is inside ArrayCollection, everything is ASObject. So ((BdcDetails)bdc.getBdcdetails().toArray()) ==> give ClassCastException
Please help! Thanks
P/S: I am using Blaze DS 126.96.36.199-SNAPSHOT
Have you tried putting the RemoteClass meta data tag in the Flex class BdcDetails.as?
Thanks, i ve found the work around.
I create a setter for Bdc.as
funtion set bdcDetails in which i loop through the arraycollection, cast
each item to BdcDetails then put back to the arraycollection.
That s it. I dont know it s good or not but it works