@Override
  public void encodeBegin(FacesContext context) throws IOException {
    UIInput year = findUIInput("year");
    UIInput month = findUIInput("month");
    UIInput day = findUIInput("day");
    UIInput hour = findUIInput("hour");
    UIInput min = findUIInput("minute");

    Converter converter = getConverter();
    if (converter instanceof LocalDateConverter) {
      encode(year, month, day, (LocalDate) getValue());
    } else if (converter instanceof LocalDateTimeConverter) {
      encode(year, month, day, hour, min, (LocalDateTime) getValue());
    } else if (converter instanceof DateTimeConverter) {
      encode(year, month, day, hour, min, (Date) getValue());
    }

    super.encodeBegin(context);
  }
Exemplo n.º 2
0
 public void encodeBegin(FacesContext context) throws IOException {
   trace("eB-" + getId());
   super.encodeBegin(context);
 }