ICEfaces
  1. ICEfaces
  2. ICE-2782

Paginator not refreshing on dynamic change in data table records

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.7.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Windows

      Description

      Using a data table and data paginator when changing the table results dynamically the descriptive data paginator displays wrong information. For example if you navigate to page two of the data table and then clear the results from the table the descriptive paginator will display "Currently displaying 10 - 0 of 0 results" when it should say "Currently displaying 0 - 0 or 0 results".

      This seems to be related to the location of the paginator. If the paginator is above the data table then the paginator is updated with the correct information. If it is located under the data table then the described issue is displayed.
      1. TableBean.java
        3 kB
        Arran McCullough
      2. main.jspx
        6 kB
        Arran McCullough
      1. screenshot-3.jpg
        81 kB
      2. screenshot-2.jpg
        80 kB
      3. screenshot-1.jpg
        109 kB

        Activity

        Arran McCullough created issue -
        Hide
        Arran McCullough added a comment -

        Example war file to reproduce the issue

        Show
        Arran McCullough added a comment - Example war file to reproduce the issue
        Arran McCullough made changes -
        Field Original Value New Value
        Attachment Bug4592Example.war [ 10839 ]
        Hide
        Arran McCullough added a comment -

        jspx and java files in case war file does not work

        Show
        Arran McCullough added a comment - jspx and java files in case war file does not work
        Arran McCullough made changes -
        Attachment main.jspx [ 10840 ]
        Attachment TableBean.java [ 10841 ]
        Arran McCullough made changes -
        Hide
        Arran McCullough added a comment -

        NetBeans project directory

        Show
        Arran McCullough added a comment - NetBeans project directory
        Arran McCullough made changes -
        Attachment Bug4592Example.zip [ 10842 ]
        Ken Fyten made changes -
        Fix Version/s 1.7.1 [ 10122 ]
        Ken Fyten made changes -
        Assignee Priority P3
        Assignee Yip Ng [ yip.ng ]
        Hide
        yip.ng added a comment -

        war file doesn't work. Got the following error:

        java.lang.UnsupportedOperationException
        com.sun.faces.context.BaseContextMap.remove(ExternalContextImpl.java:437)
        com.icesoft.faces.application.D2DViewHandler.createView(D2DViewHandler.java:181)
        com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:184)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
        com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)

        Show
        yip.ng added a comment - war file doesn't work. Got the following error: java.lang.UnsupportedOperationException com.sun.faces.context.BaseContextMap.remove(ExternalContextImpl.java:437) com.icesoft.faces.application.D2DViewHandler.createView(D2DViewHandler.java:181) com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:184) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268) com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110) javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
        Hide
        Arran McCullough added a comment -

        Try importing the files to your IDE (main.jspx, TableBean.java) , The war was built by NetBeans which means It could be missing or has something extra that could be causing the error. It was created using NetBeans 6.0.1 and deployed on Tomcat 6.0.13.

        Show
        Arran McCullough added a comment - Try importing the files to your IDE (main.jspx, TableBean.java) , The war was built by NetBeans which means It could be missing or has something extra that could be causing the error. It was created using NetBeans 6.0.1 and deployed on Tomcat 6.0.13.
        Hide
        yip.ng added a comment -

        Created Intellij project from scratch, but still got a NullPointerException. Had to copy the web.xml file from some other example to get around this.

        Show
        yip.ng added a comment - Created Intellij project from scratch, but still got a NullPointerException. Had to copy the web.xml file from some other example to get around this.
        yip.ng made changes -
        Attachment screenshot-1.jpg [ 10990 ]
        yip.ng made changes -
        Attachment screenshot-2.jpg [ 10991 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #16677 Thu May 22 16:18:48 MDT 2008 yip.ng ICE-2782
        Fixed bug in value of first row index when data table is empty.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/datapaginator/DataPaginatorRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #16678 Thu May 22 16:20:06 MDT 2008 yip.ng ICE-2782
        Fixed bug in value of first row index when data table is empty.
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/component/src/com/icesoft/faces/component/datapaginator/DataPaginatorRenderer.java
        yip.ng made changes -
        Attachment screenshot-3.jpg [ 10999 ]
        yip.ng made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P3
        Assignee Yip Ng [ yip.ng ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Arran McCullough
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: