Menu

Dynamic/Variable pagesize hides banner

Help
goelshek
2008-04-14
2012-10-09
  • goelshek

    goelshek - 2008-04-14

    When I use a static/hardcoded number for pagesize:

    <display:table style="width:100%" pagesize="5">
    ...
    </display:table>

    everything works fine. However, as soon as I put a variable for pagesize:

    <%
    int pageSizeInt = Integer.parseInt((String)request.getAttribute("NUM_RESULTS_PER_PAGE"));
    %>

    <display:table style="width:100%" pagesize="<%=pageSizeInt%>">
    ...
    </display:table>

    my navigation/banner (First/Prev 1, 2, ... Next/Last) becomes hidden and I have no way of going to the next page.

    I would really appreciate if someone can please help me figure out what's going wrong.

    Thanks.

     
    • goelshek

      goelshek - 2008-04-14

      never mind. I figured it out. It was something to do with how pagination was currently implemented in my application as that was over-riding whatever displaytags did.

       

Log in to post a comment.