[英]Spring 3.x Application not working after updating from Java 7 to JAVA 8
[英]updating components on different page in primefaces 3.x
我目前正在將我們的應用程序從primefaces 2.21遷移到3.2。 我知道3.2帶來了許多新變化。 我正在嘗試使用如下所示的ajax請求更新對話框。
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
//namespaces
template="MainTemplate.xhtml">
<ui:include src="dlgpath"/>
<h:form id="formId">
<p:datatable id="tab1">
<p:column>
<p:commandButton id="mdf" value="modify" oncomplete="dlg.show();"
update="dlgfrmid"/>
</p:column>
</datatable>
</h:form>
以下是對話框的代碼
<p:dialog widgetVar="dlg">
<h:form id="dlgfrmid">
<p:panelGrid id="gridId"> </p:panelGrid>
<p:commandButton></p:commandButton>
</h:form>
</p:dialog>
我在視圖錯誤消息中得到了“臭名昭著”的找不到標識符為“ dlgfrmid”的組件,我做了很多搜索,可以幫助我理解PF 3.x中組件引用的概念嗎?
謝謝任何幫助
嘗試改變
<p:dialog widgetVar="dlg">
進入
<p:dialog appendToBody="true" widgetVar="dlg">
和
<p:commandButton id="mdf" value="modify" oncomplete="dlg.show();"
update="dlgfrmid"/>
進入
<p:commandButton id="mdf" value="modify" oncomplete="dlg.show();"
update=":dlgfrmid"/>
我有一個類似的問題,我通過將對話框附加到正文的html來解決了
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.