[ 
https://issues.apache.org/jira/browse/TOMAHAWK-1113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901127#action_12901127
 ] 

Leonardo Uribe commented on TOMAHAWK-1113:
------------------------------------------

The following issues:

TOMAHAWK-924    Tree2 documentation fails to describe "identifier" concept
TOMAHAWK-925     Improve Tree2 data model usability
TOMAHAWK-739     Introduced a Tree-Interface for tree2
TOMAHAWK-95        Need way to access Parental TreeNode When given NodeId from 
TreeModel (or UITreeData) - referring to t:tree2 usage

Talks about the same, we need a better model, that allows be extended.

There exists the following interfaces (on tree2 package)

- TreeModel
- TreeNode
- TreeState
- TreeWalker

All of them are interfaces, so we can't add methods without break existing 
code. Note javax.faces.model.DataModel is an abstract class instead, so it is 
possible to add new methods without break anything.

Also, it is not the same a tree component with a table as a model, than a tree 
component with a "tree" as a model, but maybe we can think on a "common" model.

The cool stuff about t:tree2 is the way how it can "customize"  node rendering 
using TreeNode.getType() value to locate the right facet to be rendered. Other 
advantage is how it is possible to build a tree model without much effort and 
complexity.

To solve this issue it is necessary to create a new component with alternate 
interfaces that takes into account all knowledge learned from t:tree, t:tree2 
and maybe other solutions available (trinidad tr:tree and tr:treeTable).

> Merge tree and tree2
> --------------------
>
>                 Key: TOMAHAWK-1113
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1113
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>          Components: Tree Table, Tree2
>         Environment: all
>            Reporter: Dave
>
> <tree2> does not support treeColumn (tree table), but <tree> does. These two 
> components should be merged and support  Tree Table.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to