zl程序教程

您现在的位置是:首页 >  工具

当前栏目

p:commandButton vs h:commandButton

vs
2023-09-14 09:08:27 时间

 

同样的语句,换成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