vendredi 7 mars 2014

modify styleClass of a p:commandButton conditionally in primefaces


Vote count:

0




I would like to modify the style class of a p:commandButton in primefaces conditionally, like this:



<p:commandButton value="#{file.name}" styleClass="#{file.statut == 0 ? 'normalClass' : 'strikeThroughClass'}">


It works OK for the normal


outputText


but does not seem to work on the


p:commandButton


Could you give me a hand ?



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire