6 Replies Latest reply on Jan 22, 2010 7:05 AM by Pavel Zelenka

    Table filtering doesn't work with binding

    Pavel Zelenka Newbie

      Hi,

       

      I use table filtering (sample included) which works fine. Problem occurs when I want to use rich:dataTable binding="......". Suddeny filtering (rerendering table) doesn't work and usually duplicate id exception is thrown.

       

      Thanks for help

       

      <rich:column filterExpression="#{ExpediceBean.currentObjektFilterValue eq '' or ExpediceBean.currentObjektFilterValue eq vykaz.vykladka.objekt.nazev}">
           <f:facet name="header">
                <h:selectOneMenu value="#{ExpediceBean.currentObjektFilterValue}">
                     <f:selectItems value="#{ExpediceBean.objektFilterItems}"/>
                     <a4j:support event="onchange" reRender="table" oncomplete="calculate()"/>
                </h:selectOneMenu>
           </f:facet>
           <h:outputText value="#{vykaz.vykladka.objekt.nazev}"/>
      </rich:column>