code: @Override
      public void encodeChildren(FacesContext context) throws IOException {
          if (context.getPartialViewContext().isAjaxRequest()) {
              context.getPartialViewContext().processPartial(PhaseId.RENDER_RESPONSE);
          } else {
              super.encodeChildren(context);
          }
      }
docs: <p class="changed_added_2_0">If {@link
  javax.faces.context.PartialViewContext#isAjaxRequest} returns
  <code>true</code>, perform partial rendering by calling
  {@link javax.faces.context.PartialViewContext#processPartial} with
  {@link PhaseId#RENDER_RESPONSE}.  If {@link
  javax.faces.context.PartialViewContext#isAjaxRequest} returns
  <code>false</code>, delegate to the parent {@link
  javax.faces.component.UIComponentBase#encodeChildren} method.</p>
  
  @since 2.0