I think ArrayUtil
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Maciek Sakrejda Sent: Thursday, May 22, 2008 5:42 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Trees backed by ListCollectionView with singlenode Actually, this seems to be an issue with remoting... While researching this, I've noticed that Flex remote calls helpfully strip the collection out when it contains only a single object. I was binding to lastResult (I know, Tracy will say 'I told you so'), so I did not notice this. Is there any way to turn off this behavior? Or do I need to manually work around it if !(event.result is ListCollectionView)? -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com <http://www.truviso.com> -----Original Message----- From: Alex Harui <[EMAIL PROTECTED] <mailto:aharui%40adobe.com> > Reply-To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> Subject: RE: [flexcoders] Trees backed by ListCollectionView with single node Date: Thu, 22 May 2008 16:23:11 -0700 Try to find a way to test without the custom descriptor __________________________________________________________ From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On Behalf Of Maciek Sakrejda Sent: Thursday, May 22, 2008 11:10 AM To: flexcoders Subject: [flexcoders] Trees backed by ListCollectionView with single node I have a tree of User objects backed by a ListCollectionView of Users. I have a custom TreeDataDescriptor that shows these users and their roles. This works fine when I have more than one user. However, if the tree contains just a single user, the user node does not appear, only the roles show up. How can I make my tree behave consistently here? That is with collection Users [ user1 , user2 ] tree is: user1 -- role1 -- role2 user2 -- role1 -- role2 -- role3 with collection Users [ user1 ] tree is: role1 role2 tree should be user1 -- role1 -- role2 -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com <http://www.truviso.com>