Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/313.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/2/jsf-2/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
Java 复合组件中使用的ui定义在primefaces上不起作用_Java_Jsf 2_Primefaces_Composite Component - Fatal编程技术网

Java 复合组件中使用的ui定义在primefaces上不起作用

Java 复合组件中使用的ui定义在primefaces上不起作用,java,jsf-2,primefaces,composite-component,Java,Jsf 2,Primefaces,Composite Component,现在我必须构建一个复合组件来实现特定的功能。 我们的布局页面如下所示: layout.xhtml content.xhtml ... dlg.xhtml复合组件 ... ... 我希望当我点击输入时,对话框会打开。不幸的是,它不起作用。我已经尝试在对话框中添加appendToBody=true并删除,对话框可以打开,但页面中没有独立的dlgForm,这将在提交表单数据时导致一些问题 那么,如何在layout.xhtml中的正确位置渲染对话框呢

现在我必须构建一个复合组件来实现特定的功能。 我们的布局页面如下所示:

layout.xhtml

content.xhtml

... dlg.xhtml复合组件

... ... 我希望当我点击输入时,对话框会打开。不幸的是,它不起作用。我已经尝试在对话框中添加appendToBody=true并删除,对话框可以打开,但页面中没有独立的dlgForm,这将在提交表单数据时导致一些问题

那么,如何在layout.xhtml中的正确位置渲染对话框呢