Skip to content

Commit

Permalink
Clean up unused comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmai authored and mai committed Jan 24, 2024
1 parent 2168e75 commit de5c83a
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ private void encodeMarkup(FacesContext context, ClockPicker clockPicker, final S
writer.writeAttribute("id", inputId, null);
writer.writeAttribute("name", inputId, null);
writer.writeAttribute("type", "text", null);
// writer.writeAttribute("class", "form_control", null);
writer.writeAttribute("class", "ui-inputfield ui-widget ui-state-default ui-corner-all", null);
writer.writeAttribute("size", 5, null);
writer.writeAttribute("maxlength", 5, null);
Expand Down Expand Up @@ -159,8 +158,6 @@ public Object getConvertedValue(FacesContext context, UIComponent component,
}
}
catch (ConverterException e) {
// clockPicker.setConversionFailed(true);

throw e;
}

Expand All @@ -178,21 +175,16 @@ public Object getConvertedValue(FacesContext context, UIComponent component,
}
}
catch (ConverterException e) {
// clockPicker.setConversionFailed(true);

throw e;
}

// Use built-in converter
format = new SimpleDateFormat("HH:mm", clockPicker.calculateLocale());
format.setLenient(false);
// format.setTimeZone(clockPicker.calculateTimeZone());
try {
return format.parse(submittedValue);
}
catch (ParseException e) {
// clockPicker.setConversionFailed(true);

String message = null;
Object[] params = new Object[3];
params[0] = submittedValue;
Expand Down

0 comments on commit de5c83a

Please sign in to comment.