if (this.useDate == null)
{
this.useDate.setTime(new Date());
}
Select monthSelect = getMonthSelector(selName + MONTH_SUFFIX, useDate);
ConcreteElement daySelect = null;
if (!showDays)
{
daySelect = new Input(Input.hidden, selName + DAY_SUFFIX, setDay);
}
else
{
Select tmp = getDaySelector(selName + DAY_SUFFIX, useDate);
if (onChangeSet)
{
tmp.setOnChange(onChange);
}
daySelect = tmp;
}
Select yearSelect = null;
if (useYears)
{
yearSelect = getYearSelector(selName + YEAR_SUFFIX,
firstYear, lastYear, selectedYear);
}
else
{
yearSelect = getYearSelector(selName + YEAR_SUFFIX, useDate);
}
if (onChangeSet)
{
monthSelect.setOnChange(onChange);
yearSelect.setOnChange(onChange);
}
ElementContainer ec = new ElementContainer();
// ec.addElement(new Comment("== BEGIN org.apache.turbine.util.DateSelector.ecsOutput() =="));
ec.addElement(monthSelect);
ec.addElement(daySelect);