问题
When I use next code part in my code : RequestContext.getCurrentInstance().update("growl");
there is a warning as "The method update(String) from the type RequestContext is deprecated" and in code part and crossed of "update".
RequestContext.getCurrentInstance().update("growl");
there is a warning as "The method update(String) from the type RequestContext is deprecated" and in code part and crossed of "update".
It is clear that this way is overdue. What is the modern way of doing this.
回答1:
It has been replaced with:
PrimeFaces.current().ajax().update(expressions);
See also:
- https://github.com/primefaces/primefaces/wiki/Migration-Guide#62-to-70
- https://primefaces.github.io/primefaces/7_0/#/ajax/rendering?id=dynamicruntime-updates
来源:https://stackoverflow.com/questions/56309757/the-method-updatestring-from-the-type-requestcontext-is-deprecated