【发布时间】:2011-08-22 08:29:08
【问题描述】:
当单击弹出窗口(pp1)中的“保存”按钮时,项目列表会更新。
但是当按下项目列表中的更新按钮时,渲染 ID :form1:pp1 is not there 渲染时出现错误。如果做 render="@all" 它可以工作,但它不好。
(错误:<f:ajax> 包含未知 id ':form1:pp1')
<h:form id="form1" prependid=false>
<h:panelGroup id="projects">
<ui:repeat var="action" value="#{dadadada}" varStatus="status">
<h:commandButton value="Save">
//gives id not found error
<f:ajax event="click" execute="@form" render=":form1:pp1" listener="#{fsfsfsfsfs}" />
</h:commandButton>
</ui:repeat>
</h:panelGroup> // project panel group
//popup
<h:panelGroup id="pp1">
<div id="popup2" class="popup_block">
//save button in the popup
<div class="popupBody_save2">
<h:commandButton image="resources/images/saveBtn.gif" value="Save">
<f:ajax event="click" execute="@form" render="projects" listener="#{dfsfssfs}" />
</h:commandButton>
</div>
</div>
</h:panelGroup>
</h:form>
【问题讨论】: