How can I make use of customized icons in PrimeFaces?
问题 PrimeFaces provides a lot of icons from jQuery themeroller. They're useful but I need to have some customized icons for my app. Suppose I have a <p:commandButton> : <p:commandButton icon="ui-icon ui-icon-check" /> Since my CSS knowledge is very limited, I'd be very grateful if you could show me how I can put some customized icon into the label of the above button. Best regards, 回答1: You need to define your own css class: .img-button-help { background-image: url('../images/help.png')