Matt Kohanek wrote:Well this object will change session to session, and depending on the user. The value this collection contains will be deviceid like you said, btu eventually there will be many others like project, name, channel, etc
These will be used in a richfaces tree to populate recursive tree nodes, so when a user logs in he will have a project explorer pane (similar to eclipse) that will have his projects as the roots, devices as a child of projects and channels as a child of devices.
-project
---device
------channel
A user can have multiple projects, a project can have multiple devices, adn a device can have multiple channels, so I need something to hold all the values for each which I can then bind to the tree nodnd
On the richfaces forum I was told that the data types I am able to bind to this recursive tree node are "collections(list), array or maps"
Oh and I do have a restriction on client response time (2ms if Im rememebring right), which is why I am asking this, because with my relative inexperience my code is already going to be clunky and sluggish as it is
Matt, from what you described I am guessing my post at
Last Post
might help.
Root Nodes can refer to you projects in this case,
modify the RootNodes(Projects) to include List<Device>
modify Device to include List<Channel>
and for each user just iterate over this xmldata object.