Bonjour dans une dataTable je souhaite afficher des données et sous certaines conditions ajouter une tooltip pour la cellule.
L'utilisation de c:if dans une dataTable semlbe poser probleme car le c:if est interpreter avant que la dataTable soit construite, donc au lieu de faire un c:if sur chacun de mes beans contenu dans mon tableau il y'a un seul c:if sur un objet null...
dans ce cas comment faire de la mise en forme conditionnelle dans une datatable?
Merci!!
Code xml : 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 <rich:dataTable id="dataTable_list_type_service" width="100%" value="#{listTypeService.listTypeServiceBean}" var="typeService"> <rich:column width="10%"> <f:facet name="header"> <h:selectBooleanCheckbox id="selectionAllCheckBox" value="#{listTypeService.selection}"> </h:selectBooleanCheckbox> </f:facet> <center> <h:selectBooleanCheckbox id="selectionCheckBox" value="#{typeService.selection}" /> </center> </rich:column> <rich:column width="30%"> <f:facet name="header"> <h:outputLabel id="label_identifiant_list" value="#{i18n.identifiant}" /> </f:facet> <h:outputText value="#{typeService.identifiant}" /> </rich:column> <rich:column width="60%"> <f:facet name="header"> <h:outputLabel value="#{i18n.libelle}" /> </f:facet> <h:outputText value="#{typeService.formatedLibelle}" /> <c:if test="#{typeService.tooLongLibelle}"> <rich:toolTip followMouse="true" direction="top-right" showDelay="500"> <span style="white-space:nowrap"> <h:outputText value="#{typeService.fullLibelle}" /> </span> </rich:toolTip> </c:if> </rich:column> </rich:dataTable>
Partager