Class AjaxLocal


  • public final class AjaxLocal
    extends Object

    Collection of utility methods for the Faces API with respect to working with PartialViewContext.

    The difference with Ajax is that no one method of AjaxLocal obtains the FacesContext from the current thread by FacesContext.getCurrentInstance(). This job is up to the caller. This is more efficient in situations where multiple utility methods needs to be called at the same time. Invoking FacesContext.getCurrentInstance() is at its own an extremely cheap operation, however as it's to be obtained as a ThreadLocal variable, it's during the call still blocking all other running threads for some nanoseconds or so.

    Since:
    4.6
    Author:
    Bauke Scholtz
    See Also:
    Ajax