Try to find a way to test without the custom descriptor

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 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> 

 

Reply via email to