Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.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/7/jsf/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 ajaxStatus不';t调用启动事件_Ajax_Jsf_Primefaces - Fatal编程技术网

Primefaces ajaxStatus不';t调用启动事件

Primefaces ajaxStatus不';t调用启动事件,ajax,jsf,primefaces,Ajax,Jsf,Primefaces,我有一个搜索按钮,它通过AJAX调用我的支持Bean中的一个方法。当它被点击时,我想显示一个动画加载图标,为此我选择了Primefaces的ajaxStatus。我放在facet“default”上的元素可以完美地加载,但是facet“start”中的另一个元素不能。下面是按钮的代码(p:commandLink)及其内部的ajaxStatus: 客车CEP 我从未见过ajaxStatus被用作commandLink的子级。这可能就是原因。尝试使用commandLink的正常onstart和on

我有一个搜索按钮,它通过AJAX调用我的支持Bean中的一个方法。当它被点击时,我想显示一个动画加载图标,为此我选择了Primefaces的ajaxStatus。我放在facet“default”上的元素可以完美地加载,但是facet“start”中的另一个元素不能。下面是按钮的代码(p:commandLink)及其内部的ajaxStatus:


客车CEP

我从未见过ajaxStatus被用作commandLink的子级。这可能就是原因。尝试使用commandLink的正常onstart和oncomplete属性来操纵基于CSR的图标,或显示/隐藏不同的
标记。你知道吗,有时我们所有程序员都会遇到这样的情况,当某些东西不起作用时,突然间,它就像一个符咒一样工作?现在已经发生了。谢谢你的帮助,但显然效果很好。