It would sure help if we could see the method signature of the
getAllFolders() method.  The code of it would be even nicer ;)


-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY x85 

--- In [email protected], Christoph Guse <[EMAIL PROTECTED]> wrote:
>
> Hi List,
> 
> today I tried to fill a Tree Control dynamically. I wrote a little Java 
> class which generades a JDOM XML object which fits the needs of the
Tree 
> Control like
> 
> <node>
>     <node label="test1" />
>     <node label="test2" />
> </node>
> 
> The sourcecode of my test:
> <?xml version="1.0" encoding="UTF-8"?>
> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"; 
> initialize="initialise()">
>       
>     <mx:Script>
>         <![CDATA[
>            
>             var data;
>            
>             function initialise(){
>                 
> album.getAllFolders("/srv/www/tomcat5/base/webapps/webalbum/album");
>             }
>            
>             function fillData(res){
>                 data = album.getAllFolders.result;
>             }
>        
>         ]]>
>        
>     </mx:Script>
>    
>     <mx:RemoteObject id="album" source="org.flex.webalbum.album" 
> result="fillData">
>         <mx:method name="getAllFolders" />
>     </mx:RemoteObject>
> 
>     <mx:Tree>
>         <mx:dataProvider>{data}</mx:dataProvider>
>     </mx:Tree>
>   
> </mx:Application>
> 
> 
> The Java method is called by a remote object. My problem is I don't
know 
> how to fill the Tree Control with my JDOM object. What can I do? Get
the 
> JDOM object as String? I searched google and flexcoders.org but I
wasn't 
> able to find a solution.
> 
> Any thougt is appreciated.
> Christoph
> 
> -- 
> ****************************************
>  Christoph Guse
>  Löhstraße 34
>  41747 Viersen
>  Tel.  0 21 62 / 50 24 066
>  Mobil   01 72 / 160 74 84
>  VoIP  0 12 12 / 39 64 48 831
> ****************************************
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to