Re: [flexcoders] how to de-serialize objects

2008-12-02 Thread freak182
Hello, I have similar problem and im totally new to flex and cairngorm... here is my code snippet: im my java end: ListUsers getAll() { // from hibernate dao then return result which llist of users } in AS files: public class ListDelegate extends EventDispatcher {

Re: [flexcoders] how to de-serialize objects -- SOLVED

2008-02-21 Thread [p e r c e p t i c o n]
finally figured this out...so the problem is with using a different constructor than the AS3 object...originally i passeed the params into the java object's constructor, but those values were null when they got to the client so i created accessor methods and called the default constructor and it

Re: [flexcoders] how to de-serialize objects

2008-02-20 Thread Sujit Reddy
Hi, Firstly you need to map your AS objects to the Java objects (if you did this already, ignore). Here is the link to details on how to map. http://sujitreddyg.wordpress.com/2008/01/16/mapping-action-script-objects-to-java-objects/ to which component are you setting the dataprovider to? if it is

Re: [flexcoders] how to de-serialize objects

2008-02-20 Thread [p e r c e p t i c o n]
Sujit, I've done exactly as you have in this blog with the exception of returning one object at a time...instead i return a list of objects (in java List resultList = new ArrayList();) .. so i guess i need a way to deserialize the list on the Actionscript side is that the problem? yes...i'm using

Re: [flexcoders] how to de-serialize objects

2008-02-20 Thread [p e r c e p t i c o n]
Peeyush, I'm using remoting (RemoteObject) with a j2ee back-end... it rather takes them as a string. hmmm...this actually sheds some light on things...i'm not returning the actual object but rather a list of objects.. thanks p On Feb 19, 2008 9:33 PM, Peeyush Tuli [EMAIL PROTECTED] wrote:

Re: [flexcoders] how to de-serialize objects

2008-02-20 Thread [p e r c e p t i c o n]
Hi Again, Ok...so by instantiating my class the Serialization took place and there are 99 elements of that type in the result...however the members of the class are all null, but i'm printing them to a file on the Java side so I know that there are values in each object...any ideas on why this is

Re: [flexcoders] how to de-serialize objects

2008-02-20 Thread [p e r c e p t i c o n]
just noticed that the namespaces are different...would this matter? on the POJO it com.xxx.remoting, but on the AS3Object it just package... percy On Wed, Feb 20, 2008 at 10:12 AM, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hi Again, Ok...so by instantiating my class the Serialization

Re: [flexcoders] how to de-serialize objects

2008-02-20 Thread Sujit Reddy
If you are mapping the AS object to the Java class using the RemoteClass metatag, that will do the work. just make sure the name of the Java class in the RemoteClass metatag has the fully qualified name i.e. com.xxx.remoting .classname You need not de-serialize the arraylist, if the mapped

[flexcoders] how to de-serialize objects

2008-02-19 Thread [p e r c e p t i c o n]
hI experts, i've created a Java Object that returns an array list of items to my flex app...however even though I set the dataprovider attribute correctly none of the data actually renders...a quick glance at the data using the debugger shows that the objects are there so i think they'renot being

Re: [flexcoders] how to de-serialize objects

2008-02-19 Thread Peeyush Tuli
Are you sure about the code where you set the dataprovider to be 100% correct as I have never encountered such a scenario of no serialization. One quick recall i have is that flex was not able to de-serialize date types when used with a dotnet webservice, it rather takes them as a string. Can