1 2 Previous Next 23 Replies Latest reply on May 27, 2009 9:08 PM by Matt Kohanek

    Need help with data source to populate nodes of rich:tree

    Matt Kohanek Novice

      I know how to populate the nodes using a .properties file. But thsi will not work for my project. I have a web service, where data is stored in this format:

      <measurementProject>
       <projectId>exampleProject1</projectId>
       <name>exampleProject1</name>
       <permissions class="java.util.ArrayList">
       <projectPermission>
       <userId>exampleUser1</userId>
       <permission>admin</permission>
       </projectPermission>
       </permissions>
       <devices class="java.util.ArrayList">
       <projectDevice>
       <deviceId>exampleDevice1</deviceId>
       </projectDevice>
       </devices>
       <channels class="java.util.ArrayList">
       <projectChannel>
       <channelId>exampleChannel3</channelId>
       </projectChannel>
       </channels>
      </measurementProject>
      



      The nodes will be populated using the elements name, projectDevice, and channelId. It is unrealistic for me to transfer all the data to .properties files.

      So is there a method out there to help me easily take the data from those three elements and use it to populate the tree nodes? I already have the method written to deserialize the data, using simplexml. But past that point I am unsure what to do.

      Thanks

        1 2 Previous Next