recuperer le noeud parent d'un treeNode avec richfaces
salut
j'utilise le menu tree de richfaces
je veut ,en cliquant sur l'element choisi, recupere à la fois ce noeud et encore le noeud parent.
je parvient à recuperer le premier mais pas le 2eme
Code:
1 2 3 4
| public void processSelection(NodeSelectedEvent e) {
UITreeNode t = (UITreeNode) e.getComponent();
DomainMBean b = (DomainMBean) t.getUITree().getRowData();
} |
mon menu html est:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| <rich:tree switchType="client"
value="#{library.data}" var="item" nodeFace="#{item.type}">
<rich:treeNode type="dd" iconLeaf="/images/ffff.gif"
icon="/images/singer.gif">
<h:outputText value="#{item.nomDomain}" />
</rich:treeNode>
<rich:treeNode type="mmm" iconLeaf="/images/eeee.gif" nodeSelectListener="#{mBeanAttributs.processSelection}"
reRender="selectedNode" ajaxSubmitSelection="true"
icon="/images/singer.gif">
<h:outputText value="#{item.nomMBean}" />
</rich:treeNode>
</rich:tree> |
comment recuperer alors le parent(ici le <rich:tree>)?