0 Replies Latest reply on Feb 13, 2008 5:04 AM by

    Populate Flex Tree from Java Code (Database)

      Hi
      Can someone please help me? I'm very new to using flex. I'm basically trying to create a tree that is populated from data in my database. I am using hibernate to fetch that data.
      The plan is to basically create the tree in Java code (since I don't want any processing done on the client PC) and then pass this to the flex tree (or an actionscript data structure that is compatible as the tree datasource)
      I am creating the java tree using DocumentImpl. Is this correct? What class would work?
      Element e = null;
      Node n = null;
      Document xmldoc= new DocumentImpl();
      Element root = xmldoc.createElement("USERS");