Discussions

Web tier: servlets, JSP, Web frameworks: Server side Tree

  1. Server side Tree (8 messages)

    Dear friends,
    do you have any example for creation of tree from the server side.
    I mean - whenever I click the node of tree, it will go to server and get the expended / colapsed tree.
    I had seen many trees availble for the client side using the javascript but I need serverside only.

    I will be thankfull for your kind help.

    Prakash Dewangan

    Threaded Messages (8)

  2. Server side Tree[ Go to top ]

    Try...

    http://www.kobrix.com/index.jsp
  3. Server side Tree[ Go to top ]

    Hi Davout,
    I tried but is it population the full tree at the server, and once it reaches to the client, it executes the client code (javascript) to expand and colapse the tree....
    I need the code that expend and colapse logic is also in the server side only....
    Example
    rediffmail.com is having at left top for my contact list..
    here you can easilly see that even for expand or colapse it goes to server....

    thanks
    Prakash
  4. Server side Tree[ Go to top ]

    Are you sure about that?

    Wheh I ran their demo page the page refreshed each time a node was expanded
  5. Server side Tree[ Go to top ]

    I think I am looking some different Example in the same site
    the
    Url is
    http://www.kobrix.com/ticl/ticlmain.jsp?ticlstate=ph1~;p6~vsb~show;p2~vsb~show;p1~vsb~show&ticlcmd=panel~p2~hide

    am I looking right place??

    Prakash
  6. Server side Tree[ Go to top ]

    Prakash,

    You are not looking at the right place really ;)

    The TreeView component of TICL can be BOTH server-side and client-side: you decide. If you put:

    <t:treeView manageOn="server" ...>

    there will be a refresh on each node expand/collapse end-user action. If you put

    <t:treeView manageOn="client" ...>

    all tree data is loaded at the client and expand/collpase happens there.

    Tree node/leaf selection is treated independantly of expand/collapse. That means that you can hook a JavaScript function to a "select" or you can have the component trigger a server-side event with a refresh, regardless of where the expand/collapse happens.

    Hence the 3 TreeView examples on the TICL "Examples" page:

    http://www.kobrix.com/ticl/examples/index.jsp

    one show client-side TreeView, the other server-side and the 3d node selection (with both client and server triggered events).

    Cheers,
    Boris
  7. Server side Tree[ Go to top ]

    Out of interest what do they charge for TICL?? I can't find a price anywhere on their site
  8. Server side Tree[ Go to top ]

    Hi Boris,

    Thank you... now I got it.

    Prakash
  9. LGPL Treeview taglib[ Go to top ]

    This one worked for me, you should be able to combine it with a framework such as Struts without too many problems - source is available, license is LGPL. I tried four or five other components before selecting it.

    http://www.jenkov.dk/projects/treetag/treetag.jsp

    Alan