I want to create such button in JSF.
<button class="btn btn-primary">
<i class="fa fa-check"></i>
Save
</button>
But h:commandButton
only allow to set the value of the button in attribute called "value". So I tried to create my button like that:
<h:commandButton class="btn btn-primary" value="<i class='fa fa-check'></i>Save" action="#{bean.save}" />
And got the error:
Error The value of attribute "value" associated with an element type "h:commandButton" must not contain the '<' character.
How can I embed HTML in h:commandButton?