p:commandButton vs h:commandButton

 

同样的语句,换成primefaces就不刷新页面了。原来p的支持ajax。需要显示指定刷新全部页面。郁闷了一天了。

<p:commandButton id="SearchTop"
action="#{demandView.searchTop}" value="查询"/>

<h:commandButton id="searchCmd"

action="#{demandView.searchTop}" value="查询1" />

参考:

http://stackoverflow.com/questions/24560725/primefaces-commandbutton-not-updating-datatable-is-update-attribute-required

http://stackoverflow.com/questions/15267958/prime-faces-command-button-vs-default-command-button

posted @ 2016-08-24 10:35  Bigben  阅读(322)  评论(0编辑  收藏  举报