We tried to upgrade our application from Primeface 6 to 7. By reading the following migration guide and looking up from API method in primefaces 6.2. It suggested using "PrimeFaces.ajax().update()" to replace the "update" method from RequestContext class, however, I tried it out in our application and found it didn't work.
As the upgrade to PF 7 caused many compilation errors in our PF 6 application, I'd like to confirm with you if my following approach is on the track or not before I do whole code refactor:
[
.RequestContext has been replaced by PrimeFaces.current(). RequestContext is still available as PrimeRequestContext but it's internal PrimeFaces API and should therefore be avoided to use
https://www.javadoc.io/doc/org.primefac ... ntext.html
Code: Select all
@Deprecated
public abstract void update(String name)
Deprecated. Use PrimeFaces.ajax().update() instead
Code: Select all
RequestContext context = RequestContext.getCurrentInstance();
context.update("removeForm");
Code: Select all
PrimeFaces context = PrimeFaces.current();
context.ajax().update("removeForm");
Thanks in advance!
Primefaces 7.0
JSF 2.3
JDK 11
Weblogic 14