RequestContext 类型的方法 update(String) 已弃用
The method update(String) from the type RequestContext is deprecated
当我在我的代码中使用下一个代码部分时:
RequestContext.getCurrentInstance().更新("growl");
"The method update(String) from the type RequestContext is deprecated" 和代码部分有一个警告 "update"。
RequestContext.getCurrentInstance().update("growl");
"The method update(String) from the type RequestContext is deprecated" 和代码部分有一个警告 "update"。
很明显,这种方式已经过时了。这样做的现代方法是什么。
已替换为:
PrimeFaces.current().ajax().update(expressions);
另请参阅:
当我在我的代码中使用下一个代码部分时: RequestContext.getCurrentInstance().更新("growl");
"The method update(String) from the type RequestContext is deprecated" 和代码部分有一个警告 "update"。
RequestContext.getCurrentInstance().update("growl");
"The method update(String) from the type RequestContext is deprecated" 和代码部分有一个警告 "update"。
很明显,这种方式已经过时了。这样做的现代方法是什么。
已替换为:
PrimeFaces.current().ajax().update(expressions);
另请参阅: