Hi
guys
just
wanted to share , it works fine.
all
you have to do is add a member to your class that is called label (so you have
a getter method called getLabel())
and
the rest is magic.
Thanks
very much Manish
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani
Sent: Monday, April 18, 2005 10:51 PM
To: [email protected]
Subject: Re: [flexcoders] How to populate tree control from web service result (server side java objects)
> do i have to return an xml string from the webservice or there is a better
> way to map the objects from the result into the tree control.
The top-level object in your tree can be assigned directly to the
Tree's dataProvider property. If every object has a "label" property,
then that'll be used to the label; otherwise you can specify
a labelField to use another field, or a labelFunction to format the
data the way you want it displayed. Look out for these properties in
the Tree documentation.
--
[EMAIL PROTECTED]
http://manish.revise.org/
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
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 the Yahoo! Terms of Service.

