Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Primefaces 外部p:selectCheckBoxMenu可从复合p:dialog中看到_Primefaces_Composite - Fatal编程技术网

Primefaces 外部p:selectCheckBoxMenu可从复合p:dialog中看到

Primefaces 外部p:selectCheckBoxMenu可从复合p:dialog中看到,primefaces,composite,Primefaces,Composite,我有以下情况: Page.xhtml(p:selectCheckBoxMenuid=sb1) 从page.xhtml调用genericDialog.xhtml genericDialog.xhtml(与p:dialog等的复合实现) 从genericDialog.xhtml如何通过p:ajax处理和更新sb1组件 错误:javax.faces.FacesException:找不到标识符为“formPessoa:tipoMercado”的组件,该标识符是从“j_idt440:myForm:

我有以下情况:

  • Page.xhtml(p:selectCheckBoxMenuid=sb1
  • 从page.xhtml调用genericDialog.xhtml
  • genericDialog.xhtml(与p:dialog等的复合实现)
  • 从genericDialog.xhtml如何通过p:ajax处理和更新sb1组件
错误:javax.faces.FacesException:找不到标识符为“formPessoa:tipoMercado”的组件,该标识符是从“j_idt440:myForm:confirm”引用的

  • 在绿色图像的左侧,我有一个复合的p:dialog(genericDialog.xhtml

  • 在图像的右侧,我有一个红色的SelectCheckBox菜单id=sb1,在保存对话框中的新数据后,我需要重新加载它


非常感谢堆栈成员。

在我花了很多时间之后。。。。我发现了这个问题:

<p:commandButton id="confirm" value="#{cc.attrs.labelbotao1}" 
   oncomplete="#{cc.attrs.oncompletebotao1}" update="myForm:divmessage" 
   actionListener="#{cc.attrs.actionbeanbotao1}" **ajax="true"**>

   <p:ajax update="#{cc.attrs.ajaxupdate1}" process="#{cc.attrs.ajaxprocess1}" 
   listener="#{cc.attrs.listener1}" />
</p:commandButton>

两个问题:

  • 首先,我需要在composition genericDialog.xhtml中引用更新组件的完整路径,例如myform:sb1
  • 其次,p:commandButton上的AJAX必须为false。这样它就不会取消p:AJAX更新和进程
我想听听其他的意见或解决办法等