Nov 4, 2017

Check a request is a Ajax Request in JSF

 final FacesContext facesContext = FacesContext.getCurrentInstance();
        if (facesContext.getPartialViewContext().isAjaxRequest() ) {  
            //is Ajax;
}