1 Reply Latest reply on Feb 10, 2009 9:07 AM by Ilya Shaikovsky

    Exetended rich:calendar

    Andriy Samulyak Newbie

      Hello!

      Did anyone tried to iterate data in cell of calendar?


      I tried to make it something like in demo, but I tried use Collection instead of HashMap (data property) and tried to iterate it. I received no errors, but with no result :(

      <rich:calendar popup="false" showApplyButton="false"
       cellWidth="100px" cellHeight="100px"
       boundaryDatesMode="none" showWeeksBar="false"
       dataModel="#{calendarDataModel}" onchanged="if (event.rich.date) {ajaxSubmit();}" oncurrentdateselect="return false" id="organizer"
       showFooter="false">
       <f:facet name="header">
       <h:panelGroup>
       <h:outputText value="Current Month" styleClass="header"/>
       </h:panelGroup>
       </f:facet>
       <a4j:outputPanel layout="block" id="cell" onclick="#{rich:component('organizer')}.resetSelectedDate()" style="height: 100%;">
       <h:panelGrid columns="1">
       <h:outputText value="{day}"/>
      
       <rich:dataTable value="{data}" var="item">
       <h:outputLabel value="{item.name}"/>
       <h:outputText value="{item.value}"/>
       </rich:dataTable>
       </h:panelGrid>
       </a4j:outputPanel>
       </rich:calendar>