0
我使用JSF 2.2,PrimeFaces和Glassfish和我有這樣的:如何使窗體標籤與另一個窗體標籤交流?
<h:form id="formularioAltas">
//more code
<p:commandButton value="Guardar" action="#{altasBean.agregarRefaccion()}" />
</h:form>
<h:form id="myForm" enctype="multipart/form-data" prependId="false" rendered="#{altasBean.estado}">
// more code here
</h:form>
我需要formularioAltas
告訴myForm
該布爾屬性estado
的價值發生了變化。我理解它就像執行一個簡單的update
到myForm
當commandButton
被執行,但不能因爲他們是不同的形式。我需要這種方式,因爲我有問題上傳文件到服務器,所以我決定使用兩種不同的形式。我正在使用這種形式,但是當執行commandButton
時,我只想顯示myForm
。
任何想法?
+1表示myForm爲「她」 –