MMBase

list.jsp reminds offset on new search

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.7.3
  • Fix Version/s: 1.9.7
  • Component/s: Editwizards
  • Description:
    Hide
    original bugid: #6716
    The situation: a users searches with list.jsp and walks through the pages with results. He stops for instance at page 5 => start==5

    When he starts a new search now by entering a new searchterm the offset remains at 5, yielding no results when #results < pagesize * 5

    The problem dissappears when the following code is added to list.jsp (around line 120)

    // fire query
    // reset offset when a new search is started
    if (session.getAttribute("listConfig.searchValue") != null) {
       if(!session.getAttribute("listConfig.searchValue").equals(listConfig.searchValue)) {
          listConfig.start = 0;
       }
    }
    session.setAttribute("listConfig.searchValue", listConfig.searchValue);

    NodeList results = null;
    Show
    original bugid: #6716 The situation: a users searches with list.jsp and walks through the pages with results. He stops for instance at page 5 => start==5 When he starts a new search now by entering a new searchterm the offset remains at 5, yielding no results when #results < pagesize * 5 The problem dissappears when the following code is added to list.jsp (around line 120) // fire query // reset offset when a new search is started if (session.getAttribute("listConfig.searchValue") != null) {    if(!session.getAttribute("listConfig.searchValue").equals(listConfig.searchValue)) {       listConfig.start = 0;    } } session.setAttribute("listConfig.searchValue", listConfig.searchValue); NodeList results = null;

Activity

People

Dates

  • Created:
    2005-05-25 20:23
    Updated:
    2010-10-15 14:32