Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 向commandButton值添加元素_Jsf_Icons_Commandbutton - Fatal编程技术网

Jsf 向commandButton值添加元素

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

我想在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="#{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>