You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "sean schofield (JIRA)" <my...@incubator.apache.org> on 2005/08/19 16:24:55 UTC

[jira] Updated: (MYFACES-432) [tree2] Expand full node path of a specific nodes programatically

     [ http://issues.apache.org/jira/browse/MYFACES-432?page=all ]

sean schofield updated MYFACES-432:
-----------------------------------

    Description: 
We need to be able to select and expand nodes in the tree.  If someone
hits 'search', we need to expand the path to the node we find and select it.  This seems
troublesome to do in the current implementation

Ideally we would like to be able to use the client side feature of Tree2, but would use
server-side if that is all that worked.


  was:
This JIRA issue is in response to the upcomming tree2 summit.

We would love to use Tree2 for our application, but it falls short in a variety of areas. 
I'll list them out here in order to have them evaluated by the developers, but this
bug can be deleted once it's been hashed out.  

1)  (high priority) We need to be able to dynamically add and delete nodes from the
tree, and have it behave correctly.  Currently if you add or delete nodes, you will
get into a situation where the server will blow up with a 'duplicate ID' problem.  Our
application has an explorer view (tree on the left, workspace on the right).  Part of the
app adds new members to the tree, so we need to be able to have this refreshed and
displayed correctly

2)  (high priority) We need to be able to select and expand nodes in the tree.  If someone
hits 'search', we need to expand the path to the node we find and select it.  This seems
troublesome to do in the current implementation

Ideally we would like to be able to use the client side feature of Tree2, but would use
server-side if that is all that worked.


        Version: 1.0.9 beta
      Assign To: sean schofield

The new TreeState interface should be able to help you here.  If you have a specific nodeId you can use the model to get the full path, parse it out and then toggle each nodes expanded state through TreeState interface.  There is a catch with expanding all of them on the intial tree generation (see MYFACES-353) b/c you don't have all of the nodes loaded yet, but that is not what you are talking about.

When you refer to CST do you mean that the search would be done on the client-side (or was this part of the description related to  your original report in MYFACES-351)?

> [tree2] Expand full node path of a specific nodes programatically
> -----------------------------------------------------------------
>
>          Key: MYFACES-432
>          URL: http://issues.apache.org/jira/browse/MYFACES-432
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.0.9 beta
>  Environment: All
>     Reporter: Jon Travis
>     Assignee: sean schofield

>
> We need to be able to select and expand nodes in the tree.  If someone
> hits 'search', we need to expand the path to the node we find and select it.  This seems
> troublesome to do in the current implementation
> Ideally we would like to be able to use the client side feature of Tree2, but would use
> server-side if that is all that worked.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira