[richfaces-issues] [JBoss JIRA] Commented: (RF-4129) Expanding/collapsing rich:tree nodes from model
Ingo Jobling (JIRA)
jira-events at lists.jboss.org
Wed Dec 17 23:22:54 EST 2008
[ https://jira.jboss.org/jira/browse/RF-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12443269#action_12443269 ]
Ingo Jobling commented on RF-4129:
----------------------------------
You can do this in Richfaces V3.2.2 using the adviseNodeOpened attribute. See example [here=>http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197262#4197262]
The changeExpandListener attribute may also be useful.
> Expanding/collapsing rich:tree nodes from model
> -----------------------------------------------
>
> Key: RF-4129
> URL: https://jira.jboss.org/jira/browse/RF-4129
> Project: RichFaces
> Issue Type: Feature Request
> Affects Versions: 3.2.2
> Reporter: Francisco Jose Peredo Noguez
> Assignee: Nick Belaevski
> Fix For: Wishes
>
>
> Lets say I bind my Rich Tree to a list of object using the recursiveTreeNodesAdaptor:
> Code:
> <rich:recursiveTreeNodesAdaptor roots="#{rootNodes}" var="node" nodes="#{node.childNodes}">
> <rich:treeNode rendered="#{node.visible}">
> #{node.name}
> </rich:treeNode>
>
> with this code:
> rendered="#{node.visible}"
>
> I can control if it is visible or not... I would like something similar to control if it is collapsed or not, something like:
> Code:
> collapsed="#{node.collapsed}"
> It would look like this:
> <rich:recursiveTreeNodesAdaptor roots="#{rootNodes}" var="node" nodes="#{node.childNodes}">
> <rich:treeNode rendered="#{node.visible}" collapsed="#{node.collapsed}">
> #{node.name}
> </rich:treeNode>
> It would be extra-nice if it could propagate back automatically (if a leaf node has collapsed = false, all its parent nodes would be expandend)
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list