4 Replies Latest reply on Aug 10, 2009 5:15 PM by pdale

    List filters not working after first page

    pdale

      Hi,


      I have a seam-gen based list of items in an application. I have added a couple more filters to the search parameters and all is well if im on the first page.


      If my resultList is greater than 25 then the results are split into several pages - if I go to the next page then try and use a filter followed by a search then the I always get no results returned - even though I know that there are.


      For example:
      i)go to page, search list by postcode using filter at the top - no problem
      ii)go to page, click on 'next page' link then try filter results by same post code - no results returned.


      I have had a look at the code but cant see why this would happen, does anybody have any ideas. - Can post code as required


      Thanks

        • 1. Re: List filters not working after first page
          gardellajuan

          Check the param firstResult.


          When click on search always put it to 0.

          • 2. Re: List filters not working after first page
            pdale

            Juan,


            tried that - no effect still the same issue

            • 3. Re: List filters not working after first page
              gardellajuan

              Perhaps if you post code and xhtml I can help you


              Juan

              • 4. Re: List filters not working after first page
                pdale
                sorry not replied - got caught up with other things but back on this now.

                Code is below....


                <div class="actionButtons">
                        <br/>
                            <h:commandButton id="search" value="Search" view="/phase1Screens/JobsList.xhtml">
                            <f:param name="firstResult" value="0"/>
                            </h:commandButton>
                            &#160;&#160;&#160;&#160;
                            <s:button id="resetSearch" value="Reset" action="#{jobsList.resetSearch}" view="/phase1Screens/JobsList.xhtml">
                             <f:param name="firstResult" value="0"/>
                            </s:button>
                        </div>


                <rich:dataTable id="jobsList"
                                var="jobs"
                              value="#{jobsList.resultList}"
                           rendered="#{not empty jobsList.resultList}">

                let me know if you need anymore