j'ai essayé d'appliquer columnClasses a mon dataTable mais le probleme c'est que je sais pas ou declarer les styles correspondants,je les ai mis d'une façon classique dans le <head> mais ça ne marche pas.
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
| <head><STYLE type="text/css" >
<!--
tableau {
border: medium #6495ed;
border-collapse: collapse;
width: 600;
}
ligne{
font-family: monospace;
border: thin solid #6495ed;
width: 50%;
padding: 2px;
background-color: #D0E3FA;
}
colonne{
font-family: sans-serif;
border: thin solid #6495ed;
width: 50%;
padding: 2px;
text-align: left;
background-color: #ffffff;
}
-->
</STYLE>
</head> |
<h:dataTable value="#{listBenificiaireBean.listBenificiaire}" var="ligneCommandeBean" columnClasses="colonne" headerClass="tableau">
merci pour votre aide.
Partager