【发布时间】:2015-04-26 04:33:12
【问题描述】:
<h:form id="linkpanel">
<p:commandLink id="TestPanle" value="Test" update="contentOutputPanelId"/>
</h:form>
...
<h:form id="reRenderForm">
<p:outputPanel id="contentOutputPanelId" deferred="true" style="padding:5px;">
<ui:include src="/pages/test.xhtml"/>
</p:outputPanel>
<h:form>
当按下我按下 commandLink 按钮时,它将更新 contentOutputPanelId 并包含 test.xhtml。我的怀疑是没有 deferred="true" 当我按下刷新页面时它不会包含页面它工作正常。否则给定 deferred="true" 它工作正常。
【问题讨论】:
-
@mss arul 当您尝试更新
contentOutputPanelId时,您的contentOutputPanelId未加载。是这样吗?
标签: jsf primefaces