jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • DisplayTag
  • DISPL-212

Table displayed incorrectly with fully loaded last page and page number+1 for page parameter

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.1
  • Component/s: Paging/Sorting
  • Labels:
    None
  • Application server:
    TOMCAT5.0.18

Description

After deleting one record from the table, I want a user to be directed back to the current page of records spaning multiple pages.

To do this, I direct the user to the same url after deleting that record in Struts action.

This works fine as long as the record to be deleted is not the only record of the last page of multiple pages.

For example, 41 records are displayed in 3 pages (20 per page). The url for the last page with only one record is as follow:
http://fibldnw/test/paydispatch.do?action=payverify&d-16486-p=3
After deleting the last record, there are only two pages of records left. The above url will not display correctly. Changing the value of d-16486-p to any number greater than 3 will direct to the first page correctly however.

This actually applies to any situation where the last page is fully loaded and the value of page parameter in the request is the total page number plus 1.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Bing Qiao added a comment - 20/May/05 2:35 AM
Is it possible to direct to the last page if the page number in the request parameter is larger than the total pages?
Show
Bing Qiao added a comment - 20/May/05 2:35 AM Is it possible to direct to the last page if the page number in the request parameter is larger than the total pages?
Hide
Permalink
fabrizio giustina added a comment - 11/Sep/05 2:03 PM
fixed in CVS for 1.1
Show
fabrizio giustina added a comment - 11/Sep/05 2:03 PM fixed in CVS for 1.1

People

  • Reporter:
    Bing Qiao
Vote (0)
Watch (0)

Dates

  • Created:
    12/May/05 3:27 AM
    Updated:
    11/Dec/06 9:08 AM
    Resolved:
    11/Sep/05 2:03 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.