BlazeDS and Flex Data Types

Avatar

Avatar
Level 1
BSchow
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
BSchow
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
BSchow
Level 1

23-06-2008

So, I'm working with one of the samples and tweaking it
around a bit. Now I'm at a bit of a quandary, though:



I have a Java function that returns a List. I want to pass it
to Flex using a RemoteObject that calls the function, which means
it'll return a List. So...what type in Flex should I be using to
store the List? If it helps any, I'm going to eventually use the
List as a DataProvider for something after it's in a format Flex
can use.

Replies

Avatar

Avatar
Level 2
SujitG
Level 2

Likes

0 likes

Total Posts

39 posts

Correct reply

0 solutions
View profile

Avatar
Level 2
SujitG
Level 2

Likes

0 likes

Total Posts

39 posts

Correct reply

0 solutions
View profile
SujitG
Level 2

02-07-2008

Hi,



List will be converted into ArrayCollection in Flex. You will
have to say event.result as ArrayCollection in your result handler.
Please visit the URL below for more details on AS3 and Java objects
type mappings.




http://livedocs.adobe.com/flex/3/html/data_access_4.html#202412


http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-flex/



Hope this helps.