JSF Primefaces应用程序无法在升级的WildFly 18上正确渲染

问题描述 投票:0回答:1

我将Eclipse中的服务器从WildFly v10.x升级到WildFly 18.0.0 Final,现在更新视图后,我的JSF / Primefaces应用程序之一无法正确呈现。在初始页面加载时,视图看起来不错,但是如果我选择一些过滤器(Primeface下拉列表,复选框等),然后单击命令按钮以刷新视图(AJAX),则它将呈现为Primefaces不再可用。查看屏幕截图

初始视图呈现良好:enter image description here

更新视图后:enter image description here

在Chrome中调试时的错误:

SCRIPT5007: Unable to get property 'cw' of undefined or null reference

$(function(){PrimeFaces.cw('Growl','widget_growl',{id:'growl',sticky:false,life:5000,escape:true,msgs:[]});});

不确定刚升级WildFly之后应用程序为何现在无法运行。

jsf primefaces wildfly omnifaces
1个回答
0
投票

我通过用更具体的目标替换@all上的p:commandButton来解决

<p:commandButton action="#{...}" update="@all" />
<p:commandButton action="#{...}" update=":tripFormId:dataTableId" />

我在Chrome控制台调试器中看到此信息后才意识到

jquery.js.xhtml?ln = primefaces&v = 7.0:2 [Deprecation]同步由于主线程上的XMLHttpRequest不推荐使用对最终用户体验的有害影响。如需更多帮助,请检查https://xhr.spec.whatwg.org/

© www.soinside.com 2019 - 2024. All rights reserved.