用Ajax4jsf刷新primefaces 组件

平时都使用用Ajax4jsf来刷新JSF,最近使用primefaces 组件,用Ajax4jsf刷新primefaces 组件的方法如下:使用a4j:outputPanel 将要刷新的primefaces 组件包起来就可以,例子代码如下:

<a4j:outputPanel id="pgrowl"> 
 <p:growl  showDetail="true"  sticky="true"/> 
<a4j:outputPanel>

 刷新使用的代码:

 

<a4j:commandButton reRender="pgrowl" ..........

 

 

 

 

你可能感兴趣的:(JSF)