1 Reply Latest reply on Jan 20, 2010 3:14 PM by Nick Belaevski

    Filtering is not working with c:forEach?

    Tim Nguyen Newbie

      Does anyone make filtering work with c:forEach? I have to create a dataTable dynamically with filter but it is not working. The filtering is working fine with one column. I am using RF 3.3.1. Here is my code:

       

                        <rich:dataTable
                                      id="tableId"
                                      value="#{testTaskBean.taskList}"
                                      var="task"
                                      rows="10">
                                                  
                            <c:forEach items="#{testTaskBean.getTaskColumns()}" var="column">
                                  <rich:column
                                      sortBy="#{task.contextValues[column.columnIndex]}"
                                      filterBy="#{task.contextValues[column.columnIndex]}"
                                      filterEvent="onkeyup">
                                         
                                      <f:facet name="header">
                                          <h:outputText value="#{column.columnName}"/>
                                      </f:facet>
                                      <h:outputText value="#{task.contextValues[column.columnIndex]}" />
                                  </rich:column>                           
                              </c:forEach>
                         </rich:dataTable>

       

      Thank you,