I've redefined the method "generate" as you said:
public UIComponent generate(FacesContext context, String id)
{
HtmlCalendar component = new HtmlCalendar();
component.setRendererType("org.richfaces.CalendarRenderer");
FacesHelper.setupComponentId(context, component, id);
component.getAttributes().put("startYear", Integer.valueOf(startYear));
component.getAttributes().put("yearCount", Integer.valueOf(yearCount));
component.getAttributes().put("initialiseIfNull", new Boolean(initialiseIfNull));
component.getAttributes().put("style", "margin-right: 7px;");
if(noneLabel != null)
{
component.getAttributes().put("noneLabel", noneLabel);
}
return component;
}
Then, I've disabled mootools. However, calendars don't appear. Dates are still shown in the same way. What am I missing?
Thanks.