Bonjour,
j'essaie de personnaliser les icons d'un treeView.
Le code est:
Le problème est que l'arbre s'affiche mais pas les icons dont j'ai précisé le path.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 <f:view> <h:form> <rich:tree value="#{rf4351.treeNode}" var="item" switchType="ajax" rowKeyConverter="org.richfaces.TreeRowKeyConverter" nodeFace="#{item.type}"> <rich:treeNode ajaxSingle="true" type="a" iconLeaf="/images/close.png" icon="/images/tree/disc.png"> <h:outputText value="#{item.attributes[des]}" /> <a4j:commandLink ajaxSingle="true" value="link" /> </rich:treeNode> <rich:treeNode ajaxSingle="true" type="b" iconLeaf="/images/close.png" icon="/images/tree/disc.png"> <h:outputText value="#{item.attributes[cod]}" /> <a4j:commandLink ajaxSingle="true" value="link" /> </rich:treeNode> </rich:tree> </h:form> </f:view>
Est ce que quelqu'un a une idée???
Partager