Jsf 如何使用p:remotecommand更新h:inputText值?

Jsf 如何使用p:remotecommand更新h:inputText值?,jsf,primefaces,remotecommand,Jsf,Primefaces,Remotecommand,我在使用p:remoteCommand更新jsf页面(primefaces 1.1版)中的h:inputText时遇到问题。正在调用ActionListener方法,但服务器响应没有更新inputText值的新值。以下是jsf代码: 更新NIs如果您从p:remoteCommand中删除immediate=“true”,它是否有效?首先感谢您的快速响应。似乎只有在填写了所有必填字段的情况下,才会更新inputText(与outputText类似)。换句话说,如果有一个字段没有通过验证,那么i

我在使用p:remoteCommand更新jsf页面(primefaces 1.1版)中的h:inputText时遇到问题。正在调用ActionListener方法,但服务器响应没有更新inputText值的新值。以下是jsf代码:



更新NIs
如果您从
p:remoteCommand
中删除
immediate=“true”
,它是否有效?首先感谢您的快速响应。似乎只有在填写了所有必填字段的情况下,才会更新inputText(与outputText类似)。换句话说,如果有一个字段没有通过验证,那么inputText将不会被更新!因此,我现在的问题是“如何在使用p:remoteCommand时绕过字段验证?”。尝试将
process=“@this”
添加到
p:remoteCommand
。没有帮助。甚至我也使用了immediate=“true”,但没有帮助either@AliShokri我确信这只是您的示例代码,但您的action listener方法缺少开头大括号。”actionListener=“#InsertPotentialAgencyManager.setNationalIds}”