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
Ajax 为什么我的脸';s控件在迁移后不起作用?_Ajax_Jsf_Primefaces - Fatal编程技术网

Ajax 为什么我的脸';s控件在迁移后不起作用?

Ajax 为什么我的脸';s控件在迁移后不起作用?,ajax,jsf,primefaces,Ajax,Jsf,Primefaces,刚刚从jboss 7.1迁移到wildfly 16,PrimeFaces 4.0迁移到6.2 据我所知,PrimeFaces使用ajax及其元素,如p:commandLink、p:commandButton等 我有: <p:commandLink action="#{exampleBean.redirrectSomewhere}"> labelName </p:commandLink> 标签名 在点击commandLink之后,什么都没有发生,但是如果我添

刚刚从jboss 7.1迁移到wildfly 16,PrimeFaces 4.0迁移到6.2

据我所知,PrimeFaces使用ajax及其元素,如p:commandLink、p:commandButton等

我有:

<p:commandLink action="#{exampleBean.redirrectSomewhere}">
     labelName
</p:commandLink>

标签名
在点击commandLink之后,什么都没有发生,但是如果我添加ajax='false'作为属性,它就可以正常工作了

是否有一些方法可以使用ajax重定向


询问更多信息。

这是一个已知的问题(至少对我而言)。使用
process=“@this”
确保ajax更新当前组件而不是整个视图。然后可以删除
ajax=“false”

作为web开发人员的第一件事是在浏览器的JS控制台中查找任何提示。另外,使用
p:link
进行重定向更好,除非您希望执行重定向,并且该重定向在该方法中返回与此模式匹配的字符串
urltofile?faces redirect=true
确定这在PF 4中有效吗?及please@BalusC通过查看浏览器的“网络”选项卡找到解决方案。据说有渲染错误。不知怎的,迁移后js脚本刚刚崩溃。谢谢大家的帮助。这是不正常的行为。添加
process=@this
以使其工作,从而掩盖另一个潜在问题,如va;反渗透失败。