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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.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
Jsf 2 如何<;a4j:commandButton>;RichFaces 4的作品_Jsf 2_Richfaces_Ajax4jsf_Commandbutton - Fatal编程技术网

Jsf 2 如何<;a4j:commandButton>;RichFaces 4的作品

Jsf 2 如何<;a4j:commandButton>;RichFaces 4的作品,jsf-2,richfaces,ajax4jsf,commandbutton,Jsf 2,Richfaces,Ajax4jsf,Commandbutton,人, 我有一个使用RichFaces 3的应用程序,它运行得非常好,我正在尝试更改为RichFaces 4 无法解决的问题涉及到使用 在RichFaces 3上,以下代码起作用: <a4j:commandButton value="button test" action="#{bean.executeAction()}" reRender="myForm"/> 我试着换衣服 <a4j:commanButton value="button teste" action="#{

人,

我有一个使用RichFaces 3的应用程序,它运行得非常好,我正在尝试更改为RichFaces 4

无法解决的问题涉及到使用

在RichFaces 3上,以下代码起作用:

<a4j:commandButton value="button test" action="#{bean.executeAction()}" reRender="myForm"/>

我试着换衣服

<a4j:commanButton value="button teste" action="#{bean.executeAction()}" render="myForm"/>


然而,在其他可能的情况下,什么都不起作用


请提供帮助。

您可以尝试添加“执行”

<a4j:commandButton value="Button" type="submit" 
                   id="button_1" render="myForm"
                   execute="@form" 
                   action="#{bean.executeAction()}" />


这个按钮至少对我有用

你说的“什么都没用”是什么意思?是否有任何异常消息?动作方法被执行了吗?我想这是一个输入错误:a4j:commanDbutton
<a4j:commandButton value="Button" type="submit" 
                   id="button_1" render="myForm"
                   execute="@form" 
                   action="#{bean.executeAction()}" />