Bonsoir,

J'ai developpé un dataTable comme suit

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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<p:dataTable id="table" value="#{clientCtr.lisNbProduit}" var="entry"
				paginator="true" rows="6"
				style="border:0px;width:840px;margin-left :-17px;margin-right:auto;margin-top:110px;background-image:images/background.gif;">
 
				<p:column headerText="Photo" style="width:1%">
					<center>
						<p:graphicImage value="/images/#{entry.key.photo}"
							style="height:80px" />
					</center>
				</p:column>
 
				<p:column headerText="Nom" style="width:4%">
					<h:outputText value="#{entry.key.nom}" />
				</p:column>
 
				<p:column headerText="Quantité" style="width:0.5%">
					<center>
						<h:outputText value="#{entry.value}" />
					</center>
				</p:column>
 
				<p:column headerText="Promotion" style="width:0.1%">
					<center>
						<h:outputText value="#{entry.key.promotion.pourcentage}" />
					</center>
				</p:column>
 
 
				<p:column headerText="Prix" style="width:4%">
					<center>
						<h:outputText
							value="#{(entry.key.prix *entry.value*(100-entry.key.promotion.pourcentage))/100}DT TTC" />
					</center>
				</p:column>
 
				<f:facet name="footer">
					<div align="right">
						<h:outputText value="Total TTC:" />
						<h:outputText value="#{???}" style="color:red" />
 
					</div>
				</f:facet>
 
			</p:dataTable>
Voilà je veux afficher dans le total TTC la somme de la colonne prix mais j'ai pas trouvé comment y procéder.J'ai vraiment besoin de votre aide s'il vous plait!

Merci