bonjour je veu inserer une icone par example ../image/icon.gif ds mon commandButton exemple
je veux avoir un resultat comme suit :Code:
1
2
3 <h:commandButton value="Refresh" onclick="window.location.replace(event_1.jsf)" style="width: 100px"/>
Version imprimable
bonjour je veu inserer une icone par example ../image/icon.gif ds mon commandButton exemple
je veux avoir un resultat comme suit :Code:
1
2
3 <h:commandButton value="Refresh" onclick="window.location.replace(event_1.jsf)" style="width: 100px"/>
Ca ne marche pas de mettre background: url('path/image.png'); dans style ?
Au pire, tu mets un <h:graphicImage/> à l'intérieur d'un <h:commandLink ...>
ça marche pour le background: url('path/image.png');
mai le prob c'est que l'icone se répéte n fois (jusqu a atteindre la talle du button)
Soit tu adaptes la taille de ton bouton (ou de ton image), soit tu ajoutes dans le style :
background: url(...) no-repeat;
voire (en alignant) :
background: url(...) no-repeat center center;
merci
pour ton aide romain.