public AjaxRequestBuilder resetValues(boolean value, boolean resetValuesSet) {
    PrimeConfiguration config =
        RequestContext.getCurrentInstance().getApplicationContext().getConfig();

    // component can override global setting
    boolean resetValues = resetValuesSet ? value : config.isResetValuesEnabled();

    if (resetValues) {
      buffer.append(",rv:true");
    }

    return this;
  }
  @Deprecated
  public AjaxRequestBuilder partialSubmit(boolean value, boolean partialSubmitSet) {
    PrimeConfiguration config =
        RequestContext.getCurrentInstance().getApplicationContext().getConfig();

    // component can override global setting
    boolean partialSubmit = partialSubmitSet ? value : config.isPartialSubmitEnabled();

    if (partialSubmit) {
      buffer.append(",ps:true");
    }

    return this;
  }
  @Override
  public void decode(FacesContext context, UIComponent component) {

    if (!context
        .getExternalContext()
        .getRequestContentType()
        .toLowerCase()
        .startsWith("multipart/")) {
      return;
    }

    FileUpload fileUpload = (FileUpload) component;

    if (!fileUpload.isDisabled()) {
      PrimeConfiguration cc =
          RequestContext.getCurrentInstance().getApplicationContext().getConfig();
      String uploader = cc.getUploader();
      boolean isAtLeastJSF22 = cc.isAtLeastJSF22();
      String inputToDecodeId = getSimpleInputDecodeId(fileUpload, context);

      if (uploader.equals("auto")) {
        if (isAtLeastJSF22) {
          NativeFileUploadDecoder.decode(context, fileUpload, inputToDecodeId);
        } else {
          CommonsFileUploadDecoder.decode(context, fileUpload, inputToDecodeId);
        }
      } else if (uploader.equals("native")) {
        if (!isAtLeastJSF22) {
          throw new FacesException("native uploader requires at least a JSF 2.2 runtime");
        }

        NativeFileUploadDecoder.decode(context, fileUpload, inputToDecodeId);
      } else if (uploader.equals("commons")) {
        CommonsFileUploadDecoder.decode(context, fileUpload, inputToDecodeId);
      }
    }
  }