FacesContext facesContext = FacesContext.getCurrentInstance(); PartialViewContext partialViewContext = facesContext.getPartialViewContext();
PartialViewContext partialViewContext = FacesContext.getCurrentInstance().getPartialViewContext(); partialViewContext.addPartialUpdateTarget("myForm:myText"); partialViewContext.setAjaxRequest(true);Overall, the javax.faces.context package library provides the FacesContext class and its convenience methods to handle the JSF life cycle, as well as the PartialViewContext interface to customize the partial rendering behavior.