docs: public static void encodeListValue(FacesContext context, UICalendar uicalendar, String optionName, List<Object> values) throws IOException {
          if (values == null) {
              return;
          }
  
          ResponseWriter writer = context.getResponseWriter();
  
          writer.write("," + optionName + ":[");
          for (int i = 0; i < values.size(); i++) {
              Object item = values.get(i);
              Object preText = (i == 0) ? "" : ",";
  
              if (item instanceof Date) {
                  writer.write(preText + "\"" + EscapeUtils.forJavaScript(getValueAsString(context, uicalendar, item)) + "\"");
              }
              else {
                  writer.write(preText + "" + item);
              }
          }
  
          writer.write("]");
      }