Jsf 向commandButton值添加元素
我想在JSF中创建这样的按钮Jsf 向commandButton值添加元素,jsf,icons,commandbutton,Jsf,Icons,Commandbutton,我想在JSF中创建这样的按钮 <button class="btn btn-primary"> <i class="fa fa-check"></i> Save </button> 并得到了错误信息: 错误与元素类型“h:commandButton”关联的属性“value”的值不能包含您这样使用的“” <h:commandLink style="width:20px;height:15px;" action="#{bea
<button class="btn btn-primary">
<i class="fa fa-check"></i>
Save
</button>
并得到了错误信息:
错误与元素类型“h:commandButton”关联的属性“value”的值不能包含您这样使用的“”
<h:commandLink style="width:20px;height:15px;" action="#{bean.smethodName()}"
<i class="fa fa-searchfaicon2x"></i>
</h:commandLink>
@nrofis Gr8可以在可能的
<h:commandLink style="width:20px;height:15px;" action="#{bean.smethodName()}"
<i class="fa fa-searchfaicon2x"></i>
</h:commandLink>
<h:commandButton class="btn btn-primary" value="Save" action="#{bean.save}">
<i class='fa fa-check'></i>
</h:commandButton>