JSF commandButton添加自定义属性

时间:2014-11-05 20:43:23

标签: twitter-bootstrap jsf twitter-bootstrap-3 modal-dialog commandbutton

我需要为commandButton添加自定义属性这个属性是工作引导模式所必需的,我使用h:commandButton

data-toggle="modal" 
data-target=".bs-example-modal-lg" 

<button type="button" class="btn btn-success" data-toggle="modal" data-target=".bs-example-modal-lg" >
    <span class="glyphicon glyphicon-plus"></span> 
</button>    

1 个答案:

答案 0 :(得分:0)

有几种解决方案可以绕过JSF组件不呈现自定义HTML属性这一事实。

见这里:Custom HTML tag attributes are not rendered by JSF