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. main.jspx
        6 kB
        Arran McCullough
      2. TableBean.java
        3 kB
        Arran McCullough
      1. screenshot-1.jpg
        109 kB
      2. screenshot-2.jpg
        80 kB
      3. screenshot-3.jpg
        81 kB

        Activity

        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
        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
        Hide
        Arran McCullough added a comment -

        NetBeans project directory

        Show
        Arran McCullough added a comment - NetBeans project directory
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: