2 Replies Latest reply on Oct 21, 2008 6:36 AM by Lineu Rocha

    Possible rich:calendar/rich:message bug within a4j:repeat?

    David Pegram Newbie

      Hello,

      I've recently noticed that only one validation/converter error is displayed when pairs of rich:calendar and rich:message components are wrapped in an a4j:repeat.

      Is this a known issue or am I doing something wrong?

      Thanks!

      - JEmployee

      Our platform is:

      JBoss EAP 4.2.0.GA_CP03
      JSF 1.2_09
      Facelets 1.1.14
      RichFaces 3.2.1

       <a4j:repeat var="row" value="#{CalendarTestBacking.rows}">
      
       <h:panelGrid columns="2">
       <rich:calendar id="firstDate" popup="true" showWeeksBar="false" enableManualInput="true" direction="auto" datePattern="MM/dd/yyyy" mode="ajax" converterMessage="Please enter a valid date" reRender="firstDateError" />
       <rich:message id="firstDateError" for="firstDate" styleClass="error" />
      
       <rich:calendar id="secondDate" popup="true" showWeeksBar="false" enableManualInput="true" direction="auto" datePattern="MM/dd/yyyy" mode="ajax" converterMessage="Please enter a valid date" reRender="secondDateError" required="true" />
       <rich:message id="secondDateError" for="secondDate" styleClass="error" />
       </h:panelGrid>
      
       <rich:spacer height="10" width="1" title="" />
      
       </a4j:repeat>
      



        • 1. Re: Possible rich:calendar/rich:message bug within a4j:repea
          David Pegram Newbie

          Can anyone reproduce this?

          Thank you!

          - JEmployee

          • 2. Re: Possible rich:calendar/rich:message bug within a4j:repea
            Lineu Rocha Newbie

            Hi.
            I am facing the same problem described above. But, in my case, I am using a rich:dataTable instead of a4j:repeat for iterating.

            <rich:dataTable id="dateOperations"
             value="#{filter.dateOperationList}"
             var="op" rowKeyVar="index">
             <rich:column>
             <h:selectOneMenu value="#{op.logicalOperation}" rendered="#{index > 0}">
             <f:selectItems
             value="#{reportFilterBackingBean.logicalOperations}" />
             </h:selectOneMenu>
             </rich:column>
             <rich:column>
             <h:selectOneMenu id="opo" value="#{op.operation}">
             <f:selectItems value="#{reportFilterBackingBean.dateOperations}" />
             </h:selectOneMenu>
             </rich:column>
             <rich:column width="200px">
             <rich:message id="dateMessage" for="opvDate"/>
             <!-- when using rich:calendar the rich:message tags are not working correctly
             for each operation. For instance, if more than one operation are not filled correctly, only
             the last rich:message tag is displayed when using rich:calendar tag.
             -->
             <rich:calendar id="opvDate" value="#{op.value}"
             popup="true"
             showApplyButton="false"
             cellWidth="24px"
             cellHeight="22px"
             style="width:200px"/>
             </rich:column>
            </rich:dataTable>
            

            Is this a bug in rich:calendar component?
            Please, any help is welcome.






            Tks