0 Replies Latest reply on Nov 18, 2008 4:01 AM by Uros Majeric

    rich:calendar (organizer) with data list

    Uros Majeric Newbie

      I tried to make an organizer with rich:calendar (looking for a sample http://livedemo.exadel.com/richfaces-demo/richfaces/calendar.jsf?tab=organizer)

      In CalendarDataModelItemImpl I have implemented getData() method as required. My data variable type is java.util.List<Map<String, String>>.

      Now I have a problem how to iterate trough this list on XHTML.

      <rich:calendar id="organizer" showFooter="true" locale="#{locale}" mode="ajax"
       popup="false" showApplyButton="false" boundaryDatesMode="none" showWeeksBar="true"
       oncurrentdateselect="return false" cellWidth="100px" cellHeight="100px"
       dataModel="#{calendarDataModel}" value="#{calendarList.selectedDate}" >
       <a:outputPanel layout="block" id="cell" onclick="#{rich:component('organizer')}.resetSelectedDate()" style="height: 100%;" onmouseup="testRightClick(event, '{date}');">
       <h:panelGrid columns="1">
       <h:outputText value="{day}" style="align:center"/>
       <h:outputText value="{data[0].title}"/>
       <h:outputText value="{data[0].location}"/>
       <rich:dataTable value="{data}" var="d">
       c: #{d[0]}

      I can access the varible value with
      but cannot iterate through {data}.
      Any suggestions?
      thanks for help.