Matt Kohanek wrote:eh, Im not even sure I need it to act like a list...
All I really know is that I have a page that has an xml schema that is very simple, one root and two child nodes that changes depending on the user (can be multiple root nodes with the two child nodes)
I am needing to bind the values of the root and two child nodes to something, which I can then call in my richfaces tree to populate the branches.
Ive posted so many topics and looked at so many tutorials I am just overloaded with un needed knowledge that doesnt pertain to my problem, btu just gets in the way of my figuring out how to solve it
If I werent on a deadline I would just give up on this at this point, but Im between a rock and a hard place
You are almost there, but your DeviceCollection should return a list and not a collection because I think it
JSF RI will not downcast from a Collection to any subclass.
Alternately, you already parse out your XML so just create a class which holds data for each user, based on your description above I am just laying out a basic
structure
in your jsf then for the tree nodes , you can iterate through list of xmlnodes and each node can get the value
xmlNodes[0].rootNode[0].deviceId or something similar
Not sure if it helps but that's what came in up my head while sipping
coffee !
P.S any bartender: for some odd reason the forum did not show my reply, I am resubmitting this reply again