1 Reply Latest reply on Jun 16, 2009 9:57 AM by barakka

    How do i show my events in particular date using <rich:calendar

      HI,

      i am trying to use the <rich:calendar which is organizer calendar view pls refer following link..

      http://livedemo.exadel.com/richfaces-demo/richfaces/calendar.jsf?tab=organizer&cid=140935

      I have stored more than one event in particular day.. but i cant show those events by looping in <rich:calendar.MY code as follows


      <rich:calendar id="cal" value="#{calendarmanager.currentDate}"
                                         popup="false" showApplyButton="false"
                                         cellWidth="100px" cellHeight="100px"
                                         boundaryDatesMode="none" showWeeksBar="false"
                                         dataModel="#{calendarmanager}" onchanged="if (event.rich.date) {ajaxSubmit();}" oncurrentdateselect="return false"  valueChangeListener="#{calendarmanager.valueChanged}" 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"  style="height: 100%;">
                                  <h:panelGrid columns="1">
                                      <h:outputText value="{day}" style="float:right"/>

                                      <h:dataTable id="events" columns="1" value="#{calendarmanager.personalEventMap[day]}" var="event">
                                          <h:column>
                                              <a4j:outputPanel layout="block" id="cell"  style="height: 100%;">
                                                  <h:panelGrid columns="1">
                                                      <h:outputText value="#{event}" style="vertical-align:top"/>
                                                  </h:panelGrid>
                                              </a4j:outputPanel>
                                          </h:column>
                                      </h:dataTable>

                                      <h:outputText value="{data.shortDescription.escapeHTML()}"/>
                                      <h:outputText value="{data.description.escapeHTML()}"/>
                                  </h:panelGrid>
                              </a4j:outputPanel>
                          </rich:calendar>