JSF与twitter bootstrap图标

我正在使用twitter bootstrap css来设计风格.要在其中制作图标按钮,标准方法是使用“i”标签.
< button type =“submit”>< i class =“icon-search”>< / i>< / button>.
但我无法进入其中
   < h:commandButton id =“myid”>< i class =“icon-search”>< / i>< / h:commandButton>
如何在渲染的< h:commandButton>中添加 HTML? ?

解决方法

您可以添加< i class =“icon-search”>< / i>在h:commandLink里面

命令链接可以设置为按钮样式

<h:commandLink id="btnsearch"
    action="search.xhtml"
    styleClass="btn btn-default">
    <i class="icon-search"></i> Search
</h:commandLink>

相关文章

前端工程师一般用的是Bootstrap的框架而不是样式,样式一般自...
起步导入:<linkrel="stylesheet"href="b...
(1)modal声明一个模态框(2)modal-dialog定义模态框尺寸(...
图片在Bootstrap版本3中,通过为图片添加 .img-responsive ...
<inputtype="text"class="form-controlda...
目录bootstrap-treeview使用小记零、写在前面的话一、功能说...