Java Flex Conversion

Avatar

Avatar
Level 1
Achire
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
Achire
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
Achire
Level 1

06-11-2008

I have a java remote object which is very complecated, it has
arrays of other value object inside. How to create a AS file
equivalent to directly bind this type of java object. Eq



public class MyVO{

public MyObj1[] myObj1;

public MyObj2[] myObj2;

}



Is it possible to bind directly the above java object to a
flex value object?

Replies

Avatar

Avatar
Validate 1
Level 2
Karl_Sigiscar_1
Level 2

Likes

0 likes

Total Posts

36 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
Karl_Sigiscar_1
Level 2

Likes

0 likes

Total Posts

36 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
Karl_Sigiscar_1
Level 2

18-11-2008



Yes, you can have three entities:



[RemoteClass alias="com.java.MyVO"]

public class MyVO

{

}



[RemoteClass alias="com.java.MyObj1"]

public class MyObj1

{

}



[RemoteClass alias="com.java.MyObj2"]

public class MyObj2

{

}



In the constructor for MyVO, go through all elements of
MyObj1 and MyObj2 and cast them to their respective types.



If you use the Data Management Service with LCDS, it's event
better.



Object composition can be handled with managed associations.