Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.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 使用_Java_Spring_Primefaces - Fatal编程技术网

Java 使用

Java 使用,java,spring,primefaces,Java,Spring,Primefaces,我有一个JSF表单,其中有一个。在同一个页面上,我有一个文本框上的ajax请求。工作正常,但ajax不起作用。如果我删除了,ajax就可以工作了 代码: 我找到了这个问题的解决方案: <f:event listener="#{TestComponent.refreshURL}" type="preRenderView" /> <h:inputText id="name" value="#{TestComponent.test.name}"

我有一个JSF表单,其中有一个。在同一个页面上,我有一个文本框上的ajax请求。工作正常,但ajax不起作用。如果我删除了,ajax就可以工作了

代码:


我找到了这个问题的解决方案:
   <f:event listener="#{TestComponent.refreshURL}" type="preRenderView" />
   <h:inputText id="name" value="#{TestComponent.test.name}"
                required="true" label="NID" maxlength="14" style="width: 200px">
   <p:ajax update="dob" process="name" listener="#{TestComponent.updateDob()}" />
   </h:inputText>