Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-522

Datascroller produces exception when table data is produced not directly from bean constructor.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.3
    • None
    • Data Scroller
    • None

    Description

      I have a screen with several dropdown filters that are being updated with values dynamiclly. On each selection of one of the dropdowns the screen is refreshed and new data is shown in the table accordingly.
      Since data in table is dependant on filters, I generate the data of the table in some dummy method right after the filters. I do it by simply putting outputText tag:
      <h:outputText value="#

      {bean.dummy}

      " />
      the data of the table is produced in the dummy method and retreived with a simple getter method:
      public DataModel getData()
      {
      return rows;
      }

      I am working on the exact same code as given in myfaces examples.
      When I want to move to a spacific page in the scroller, by directly pressing a page number I get this exception:
      javax.servlet.ServletException: Illegal value for first row: -10
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:61)
      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
      at org.ajaxanywhere.AAFilter.doFilter(AAFilter.java:46)
      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
      at org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:285)
      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
      at com.amadesa.admin.model.persistence.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:145)
      at com.amadesa.admin.model.persistence.OncePerRequestFilter.doFilter(OncePerRequestFilter.java)
      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:670)
      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:378)
      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:869)
      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:288)
      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:120)
      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:299)
      at java.lang.Thread.run(Thread.java:534)

      When I generate the table in the constructor everything is working fine, but it is impossible for me to generate the data in the constructor, since in the constructor I still do not know the filter selections of the user.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bashan Guy Bashan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: