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)" <de...@myfaces.apache.org> on 2005/12/07 22:01:10 UTC

[jira] Commented: (MYFACES-911) Allow user to supply their own tree2 id scheme using new TreeWalker interface

    [ http://issues.apache.org/jira/browse/MYFACES-911?page=comments#action_12359639 ] 

sean schofield commented on MYFACES-911:
----------------------------------------

@Mathias

I've been thinking about your idea about tightly coupling the TreeModel and the TreeWalker.  This isn't really possible if you want to give TreeWalker the responsibility for setting the current node of the tree as it walks the tree data.

> Allow user to supply their own tree2 id scheme using new TreeWalker interface
> -----------------------------------------------------------------------------
>
>          Key: MYFACES-911
>          URL: http://issues.apache.org/jira/browse/MYFACES-911
>      Project: MyFaces
>         Type: Improvement
>   Components: Tomahawk
>     Versions: 1.1.1
>     Reporter: sean schofield
>      Fix For: Nightly
>  Attachments: TreeWalker.patch
>
> The current HtmlTreeRenderer forces an id naming scheme of  "0", "0:0", "0:1", etc. This can be problematic with dynamic trees where the ids of two different nodes may end up when nodes are constantly being added and removed in between requests.  The new TreeWalker interface will allow users to supply their own implementations so they can override the node id algorithm with a custom implementation.  

-- 
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