rich:tree - adaptors - introduce value/property node binding
------------------------------------------------------------

                 Key: RF-9997
                 URL: https://issues.jboss.org/browse/RF-9997
             Project: RichFaces
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: component-tree
    Affects Versions: 4.0.0.Milestone5
            Reporter: Lukas Fryc


rich:treeModelAdaptor is currently able to bind only Iterable or Map instances, 
but we should also consider binding values, which can take their place in tree 
structure.

<rich:treeModelRecursiveAdaptor
                        roots="#{richTreeModelRecursiveAdaptorBean.rootNodes}"
                        nodes="#{node.recursive}"
                        >
                        
                        <rich:treeNode>
                                                #{node.label}
                                </rich:treeNode>
                                
                                <!-- unsupported -->
                                <rich:treeModelAdaptor nodes="#{node.value}">
                                        <rich:treeNode>
                                                #{node.property}
                                        </rich:treeNode>
                                </rich:treeModelAdaptor>
                                <!-- end-unsupported -->
                                
                                <rich:treeModelAdaptor nodes="#{node.list}">
                                        <rich:treeNode>
                                                #{node.label}
                                        </rich:treeNode>
                                </rich:treeModelAdaptor>
</rich:treeModelRecursiveAdaptor>


It will be good to see another tag used since conflict with naming like 
@nodes="value".

Proposal:

<rich:treePropertyNode var="value" value="#{node.value}">
    #{value.property}
</rich:treePropertyNode>


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to