将应用程序从 primefaces 5.3.6 升级到 primefaces 8 版本。 PrimeFaces.current() 实例中的 RequestContext 中的 getScriptsToExecute 方法相当于什么。
bean类中的代码:
final List<String> scriptsToExecute = RequestContext.getCurrentInstance().getScriptsToExecute();
scriptsToExecute.add("script1();");
scriptsToExecute.add("script2();");
scriptsToExecute.add("script3();");
Run Code Online (Sandbox Code Playgroud) primefaces ×1