Bonjour
J'ai un souci avec mon rich:tree.
Je le construit correctement, enfin je pense, mais lorsque je clic sur un des éléments de type "treeNode" je n'arrive pas à récupérer l'action associée :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 <rich:tree switchType="client" style="width:300px" value="#{a.getProcessTree()}" var="p" nodeFace="#{a.getType(p)}" id="treeProcess"> <rich:treeNode type="process" iconLeaf="/img/process.png" icon="/img/process.png" > <h:commandLink value="#{p.clientId}" action="#{a.showPIDetail}" onclic="#{a.showPIDetail}" reRender="piCreationDetail" /> </rich:treeNode> <rich:treeNode type="activity" iconLeaf="/img/activity.png" icon="/img/activity.png"> <h:commandLink value="#{p.clientId}" action="#{a.showAIDetail}" onclic="#{a.showAIDetail}" reRender="aiCreationDetail" /> </rich:treeNode> <rich:treeNode type="parentProcess" iconLeaf="/img/parentProcess.png" icon="/img/parentProcess.png"> <h:commandLink value="#{p.clientId}" action="#{a.processSelected(p)}" reRender="piCreationDetail" /> </rich:treeNode> </rich:tree>
a = mon animator (bean)
J'ai volontairement doublé ici les methodes associées à "onclic" et "action", essayées séparément ou ensemble je ne passe pas en debug (eclipse) dans les methodes associées.
Merci de votre aide![]()
Partager