metadata.put(HTML.VALIDATION_METADATA.PATTERN, CalendarUtils.convertPattern(pattern)); if (type.equals("both")) { df = DateFormat.getDateInstance(getStyle(dateStyle), this.getLocale()); metadata.put(HTML.VALIDATION_METADATA.DATE_STYLE_PATTERN, CalendarUtils.convertPattern(((SimpleDateFormat) df).toPattern())); df = DateFormat.getTimeInstance(getStyle(timeStyle), this.getLocale()); metadata.put(HTML.VALIDATION_METADATA.TIME_STYLE_PATTERN, CalendarUtils.convertPattern(((SimpleDateFormat) df).toPattern())); metadata.put(HTML.VALIDATION_METADATA.DATE_STYLE_PATTERN, CalendarUtils.convertPattern(((SimpleDateFormat) df).toPattern())); metadata.put(HTML.VALIDATION_METADATA.TIME_STYLE_PATTERN, CalendarUtils.convertPattern(((SimpleDateFormat) df).toPattern()));
.attr("dateFormat", CalendarUtils.convertPattern(pattern));
.attr("inline", datepicker.isInline()) .attr("userLocale", locale.toString()) .attr("dateFormat", CalendarUtils.convertPattern(pattern)) .attr("showIcon", datepicker.isShowIcon(), false) .attr("buttonTabindex", datepicker.getButtonTabindex())