如何在<p:poll/>
不进行整页刷新的情况下使用标签?
我在下面有这段代码,我告诉标签只更新消息 id,但它正在更新整个中心 layoutPane:
<pe:layoutPane id="center" position="center">
<h:form id="mainF">
<h:panelGroup id="centerContent" minHeight="70%" maxHeight="70%">
<ui:include src="#{navigationBean.pageName}.xhtml" />
</h:panelGroup>
</h:form>
<p:messages id="messages">
<p:effect type="pulsate" event="load" delay="1000">
<f:param name="mode" value="'show'" />
<f:param name="times" value="1000" />
</p:effect>
</p:messages>
<h:form id="pollF">
<p:poll interval="10" listener="#{alarmsBean.checkAlarms()}" update=":messages" partialSubmit="true" process="pollF" />
</h:form>
</pe:layoutPane>