Adobe Dreamweaver Forums



Last 10 THreads :         Suddenly can't see files on remote server (Last Post : GDrink9085 - Replies : 2 - Views : 3 )           »          DW CS3 won't work on Vista Business (Last Post : Mr Bump 73 - Replies : 0 - Views : 1 )           »          mpg video will play in FF but not in IE (Last Post : Ken Binney - Replies : 1 - Views : 2 )           »          Restate my problem - YET AGAIN (Last Post : Raymond Basque - Replies : 5 - Views : 6 )           »          How to find number of occurance of each number in biglist of numbers? (Last Post : Dan Bracuk - Replies : 3 - Views : 6 )           »          files are one level too deep (Last Post : Alan - Replies : 6 - Views : 7 )           »          Moving custom tag registration between servers. (Last Post : nosredna - Replies : 0 - Views : 1 )           »          How to do this?. (Last Post : Dan Bracuk - Replies : 1 - Views : 2 )           »          Spry Menu Background (Last Post : ich_kann_schnell_laufen - Replies : 0 - Views : 1 )           »          Dreamweaver CS4 makes my fonts go mental? (Last Post : theRizzer - Replies : 3 - Views : 9 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , , ,



Reply
  #1 (permalink)  
Old 08-26-2008, 01:18 PM
Giri s
 
Posts: n/a
Diggs:
Default converting HierarchicalData type to Java

Hi All,

How to read the children data from the ArrayCollection at the java end.

Explanation:

I have an ArrayCollection with children and I am passing this as a
dataprovider to the ADG (as HierarchicalData).


private var dpHierarchy:ArrayCollection = new ArrayCollection([
{Region:"Southwest", children: [
{Region:"Arizona", children: [
{Territory_Rep:"Barbara Jennings", Actual:38865, Estimate:40000},
{Territory_Rep:"Dana Binn", Actual:29885, Estimate:30000}]},
{Region:"Central California", children: [
{Territory_Rep:"Joe Smith", Actual:29134, Estimate:30000}]},
{Region:"Nevada", children: [
{Territory_Rep:"Bethany Pittman", Actual:52888, Estimate:45000}]},
{Region:"Northern California", children: [
{Territory_Rep:"Lauren Ipsum", Actual:38805, Estimate:40000},
{Territory_Rep:"T.R. Smith", Actual:55498, Estimate:40000}]},
{Region:"Southern California", children: [
{Territory_Rep:"Alice Treu", Actual:44985, Estimate:45000},
{Territory_Rep:"Jane Grove", Actual:44913, Estimate:45000}]}
]}


And I am passing this ArrayCollection to the Java method. I did not find any
method to read the children from the ArrayCollection.

And also, How to convert HierarchicalData type to Java.

Please help me to resolve this issue.

Thanks,
Giri









Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-29-2008, 10:43 AM
adobenewsbot
 
Posts: n/a
Diggs:
Default Re: converting HierarchicalData type to Java

Adobe Newsbot hopes that the following resources helps you. NewsBot is experimental and any feedback (reply to this post) on its utility will be appreciated:

Flex 3 - Explicit parameter passing and parameter binding:
If you pass an array to the method, it returns the same array. For information about working with ArrayCollection objects, see Using Data Providers and
Link: http://livedocs.adobe.com/flex/3/htm..._access_5.html

Dave Carabetta: My Thoughts: Array vs. ArrayCollection in Flex 2:
Personal thoughts of Dave Carabetta: Array vs. ArrayCollection in Flex 2 ... in CF, we only have an Array datatype while most other languages (Java, C#,
Link: http://www.cbetta.com/blog/index.cfm...ldfusion-slant

Flex 3 - Setting component properties:
The Adobe Flex Language Reference documents the Array properties that define a .... root of the Java web application in which a Flex application is running.
Link: http://livedocs.adobe.com/flex/3/html/mxmlSyntax_3.html

Difference between Array & ArrayCollection? | flexdeveloper.eu forums:
Array vs. ArrayCollection in Flex 2 (with a ColdFusion Slant) ... in CF, we only have an Array datatype while most other languages (Java, C#, etc.
Link: http://www.flexdeveloper.eu/forums/i...opic,44.0.html

Flex 3 - Using WebService components:
Flex uses Java server sessions to maintain the state of web service endpoints that use ..... Array of objects. mx.collections.ArrayCollection of objects
Link: http://livedocs.adobe.com/flex/3/htm..._access_3.html

Flex Monkey Patches arraycollection.-array-collection:
Tags: arraycollection.-array-collection, datagrid, dataprovider, filter, filtering, .... epox on Flex linebreaks in DataGrid itemRenderer and itemEditors
Link: http://blog.flexmonkeypatches.com/ta...ay-collection/


Disclaimer: This response is generated automatically by the Adobe NewsBot based on Adobe [L=Community Engine]http://community.adobe.com/ion/search.html[/L].
Reply With Quote
  #3 (permalink)  
Old 08-29-2008, 01:16 PM
SujitG
 
Posts: n/a
Diggs:
Default Re: converting HierarchicalData type to Java

Hi,

If you are using Remoting of BlazeDS to invoke the Java method from Flex,
ArrayCollection will be converted to ArrayList on the Java side. The ArrayList
will contain the Objects you are passing. In your case as you are not mapping
your objects to the Java classes, the objects will be received as objects of
the type Object to the Java method.

Hope this helps.

Reply With Quote


  #4 (permalink)  
Old 08-29-2008, 01:16 PM
SujitG
 
Posts: n/a
Diggs:
Default Re: converting HierarchicalData type to Java

Hi,

You can find details on how to map AS objects to Java objects at the URL
below.


http://sujitreddyg.wordpress.com/200...objects-to-jav
a-objects/

Hope this helps.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:13 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk