3 Replies Latest reply on Feb 20, 2009 6:12 PM by Nick Belaevski

    dataTable header and calendar

    Piotr Krzepczak Newbie

      I'm facing odd situation where I have placed rich:calendar component in one of the columns header. When value of it changes I do data filtering based on date and reRender whole table. What happens is that after reRendering calendar component stops responding to any events. You can't indicate new date, when clicking on icon nothing happens. This seems to be calendar specific situation since in next column I have inputText which works fine all the time. Below is short example:

      <rich:dataTable id="myTable"
       width="100%"
       value="#{myMBean.items}"
       var="item"
       rows="15"
       binding="#{myMBean.dataTable}"
       jaxKeys="#{myMBean.rowsToUpdate}">
      
      <rich:column>
       <f:facet name="header">
       <h:inputText value="#{myMBean.inputValue}">
       <a4j:support event="onkeyup" action="#{myMBean.filter}"
       eventsQueue="queue" reRender="myTable"
       ajaxSingle="true" ignoreDupResponses="true"/>
       </h:inputText>
       </f:facet>
      
       <h:outputFormat value="#{item.name}" escape="false" />
      </rich:column>
      
      <rich:column>
       <f:facet name="header">
       <rich:calendar value="#{myMBean.date}"
       popup="true" id="myDate"
       datePattern="#{text['date.format']}"
       showApplyButton="false" cellWidth="24px"
       cellHeight="22px" style="width:200px">
       <a4j:support event="onchanged"
       action="#{myMBean.filter}"
       eventsQueue="queue"
       reRender="myTable"
       ajaxSingle="true" ignoreDupResponses="true"/>
       </rich:calendar>
       </f:facet>
      
       <h:outputText value="#{item.date}"/>
      </rich:column>
      </rich:dataTable>
      


      I'm using lates 3.3.0 GA version of Richfaces.

      Any ideas pls?