0 Replies Latest reply on Jun 30, 2011 7:31 PM by Karsten Wutzke

    rich:dataTable filtering unique rows on empty textfield?

    Karsten Wutzke Expert



      I have a rich:dataTable whose rows come from a simple JPQL statement:


      As you can see, it's a list of sports team, with the team type codes separated by comma being the gender and age group, e.g. FU16 means "female under 16 years". There are several teams for club "TV Dieburg" as you can see.


      Now when I press backspace on the search box on top, the following happens:


      Can anyone tell me why this is happening and how to keep the list of unique rows?


      Here's the rich:dataTable code:

      {code}<rich:dataTable value="#{teamListQuery.resultList}"







        <f:facet name="header">

          <h:outputText value="Rosters for #{seasonHome.longViewRepresentation}" />



        <rich:column filterBy="#{tlvl.fullTeamDesc}" filterEvent="onkeyup">

          <f:facet name="header">

            <h:outputText value="Team"/>


          <s:link view="/roster-overview.xhtml" value="#{tlvl.fullTeamDesc}" propagation="none">

            <f:param name="roster" value="#{tlvl.rosterId}" />



        <f:facet name="footer">

          <rich:datascroller id="team-list-ds"/>




      #{tlvl.fullTeamDesc} is just the string as displayed in the links, too. The default startsWith filter is not supposed to filter any rows on an empty search box.


      Is it about the view bean I'm using? I can't think of anything meaningful here... Any help on this is greatly appreciated!