String versionIndicator = ClickUtils.getResourceVersionIndicator(getContext());
headElements.add(new CssImport("/click/calendar/" + getStyle()
+ ".css", versionIndicator));
headElements.add(new JsImport("/click/control.js",
versionIndicator));
headElements.add(new JsImport("/click/prototype/prototype.js",
versionIndicator));
headElements.add(new JsImport("/click/calendar/calendar_date_select.js",
versionIndicator));
// English is default language, only include language pack if other
// than English
if (!"en".equals(language)) {
JsImport jsImport = new JsImport("/click/calendar/"
+ language + ".js", versionIndicator);
jsImport.setAttribute("charset", "UTF-8");
headElements.add(jsImport);
}
}
addCalendarOptions(headElements);