/** * This method delegates to the RequestContext.isPartialRequest() with the exception that JSF Ajax * render="@all" requests are reported as non-partial * * @param context * @return */ public static boolean isPartialRequest(FacesContext context) { RequestContext rc = RequestContext.getCurrentInstance(); if (rc == null) return false; boolean isPartial = rc.isPartialRequest(context); if (isPartial && context.getPartialViewContext().isRenderAll()) { // We do not want to create PartialPageContext and use the tree visit (if enabled) // for the 'render all' <f:ajax> case isPartial = false; } return isPartial; }