更改Primefaces WIZARD组件的NEXT按钮位置

时间:2011-12-30 07:49:04

标签: java css3 jsf-2 primefaces

是否有任何选项可以更改Primefaces WIZARD组件的NEXT按钮的位置? 我的向导从以下开始。

<p:wizard flowListener="#{employeeRepositoryImpl.handleFlow}"
showNavBar="true" widgetVar="scheduler" showStepStatus="false">
</p:wizard>

1 个答案:

答案 0 :(得分:3)

如果css很适合你,你可以做这样的事情:

<h:head>
    <script type="text/javascript"> 
        jQuery(document).ready(function($) {
            jQuery('[id$="_next"]').css('right', 200) ;
        });
    </script>
</h:head>

而不是右边你可以使用left,top ...等,你也可以将它们中的几个混合在一起......

b.t.w,jQuery('[id$="_next"]')是一个选择器,可以找到页面中的下一个按钮

相关问题