Skip to Content
author's profile photo Former Member
Former Member

TableView

Hi. I am trying to display data in a table by using the tableView taglib in a jsp page. i have some problem with navigation. i have 6 records and would like to display them in 2 pages, with 3 records per page. on the footer, it shows "Page 1/2" at the beginning. when i click on the navigation button, it shows "Page 1/4", and the table still shows the 1st 3 records and not the 4th, 5th and 6th records. i only set visibleRowCount = "3" in my jsp page. May i know how to correct the navigation problem?

and i'm confused with rowcount, visiblefirstrow and visibleRowCount. Any help?

thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2004 at 02:32 PM

    It's hard to know for sure without seeing your code, but I think that you might be adding the 6 records again when you click on the page down navigation button of the tableview. I'm guessing this, because your page count goes from 2 to 4. Does it go from 4 to 6 when you click the page down button again? There is documentation in the PDK on how to handle the navigation in the tableview. The rowCount attribute is the number of rows in the tableview. The visibleFirstRow attribute is the row number of the first row that you see when the tableview is displayed. The visibleRowCount is the number of rows that are visible when the tableview is displayed.

    Brian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.