views:

21

answers:

0

I'm trying to render a calendar with certain days highlighted. The code below should do this, but today isn't highlighted the same as the other days. It seems as though some default renderer is overriding my code.

alt text

    YAHOO.phitbam.calendar.init = function() {
        YAHOO.phitbam.calendar.cal1 = new YAHOO.widget.Calendar("cal1","cal1Container");
        <core:forEach var="date" items="${myDO.calendar}">
          YAHOO.phitbam.calendar.cal1.addRenderer("<fmt:formatDate value="${date}" pattern="MM/dd/yyyy"/>", YAHOO.phitbam.calendar.cal1.renderCellStyleHighlight1);
        </core:forEach>
        YAHOO.phitbam.calendar.cal1.render();
        YAHOO.phitbam.calendar.cal1.selectEvent.subscribe(handleSelect, YAHOO.phitbam.calendar.cal1, true);
    }

In this example, myDO.calendar contains Oct 3-6. Any thoughts why Oct. 4 (today) isn't highlighted?