Yeah, maybe there are just issues with this whole process.  I eventually got it 
to work (sort 
of) by adding my objects to an ArrayList and then passing all of my objects 
using

list.toArray()

as an Object list.  It still doesn't work quite right, but its good enough for 
now.

Thanks for the help.



--- In [email protected], "madflexcoder" <[EMAIL PROTECTED]> wrote:
>
> Make sure you have the object mapped in Action Script. And that
> properties are public. 
> 
> Also, There's some known errors with passing data back and forth
> between flex and java. I'm not expert on it, but I have ran into this
> issue a bit. Check out the adobe bug center to see if what you're
> specifically doing is already listed. Also, if you're using BlazeDS
> here's a link to the data type conversions. 
> 
> http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?
content=serialize_data_2.html#312520
> 
> 
> I got around this problem by switching my datatypes around. 
> 
> 
> 
> --- In [email protected], "netdeep" <deepnet@> wrote:
> >
> > I am sending an object in java to a flex app via messaging.  Some of
> the data is coming 
> > across ok (Strings) but my List object is coming across as null even
> though the original 
> > 
> > java class:
> > 
> > import java.util.ArrayList;
> > 
> > public class Axis {
> >     
> >     String title;
> >     List axisList;
> > 
> > //  constructors and other methods here....
> >     
> >     public List getAxisList() {
> >             return axisList;
> >     }
> >     
> >     public String getTitle() {
> >             return title;
> >     }
> > }
> > 
> > And here is the mapped ActionScript version:
> > 
> > package com.data {
> >     
> >     import mx.collections.ArrayCollection; 
> >             
> >     [Bindable]
> >     [RemoteClass(alias="com.data.Axis")]
> >     public class AxistObject {
> >             public var title:String;
> >             public var axisList:ArrayCollection;
> >             
> >             public function getAxisList():ArrayCollection {
> >                     return axisList;
> >             }
> >             
> >             public function getTitle():String {
> >                     return title;
> >             }
> >     }
> > }
> > 
> > Why is it coming across as null?
> >
>



Reply via email to