ICEfaces
  1. ICEfaces
  2. ICE-7780

ace:dataTable TreeDataModel IllegalArgumentException caused when last row of table is expanded

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: EE-3.0.0.BETA, 3.0.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      IF 3

      Description

      Following the example given in the IceFaces 3.0.0 distribution samples, I cannot implement a row expansion without encountering the following exception:


      Feb 16, 2012 5:50:39 PM com.sun.faces.context.PartialViewContextImpl processPartial
      INFO: java.lang.IllegalArgumentException
      java.lang.IllegalArgumentException
      at org.icefaces.ace.model.table.TreeDataModel.getRowData(TreeDataModel.java:62)
      at javax.faces.component.UIData.getRowData(UIData.java:371)
      at org.icefaces.ace.component.datatable.DataTable.iterate(DataTable.java:1602)
      at org.icefaces.ace.component.datatable.DataTable.processUpdates(DataTable.java:219)
      at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:510)
      at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
      at org.icefaces.ace.component.datatable.DataTable.visitTree(DataTable.java:993)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
      at javax.faces.component.UIForm.visitTree(UIForm.java:344)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1601)
      at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:376)
      at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:252)
      at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:183)
      at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:230)
      at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:183)
      at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:183)
      at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:230)
      at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:1229)
      at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:78)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Thread.java:680)
      >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      This issue is caused by a change to iteration logic where the last row, when expanded and upon return from the last row expanded children, another non-existent row would attempt iteration.

        Activity

        Hide
        Nils Lundquist added a comment -

        Revision #27918
        Committed by nils.lundquist
        ICE-7780 - Resolved by fast-ending iteration when returning from child rows to the root, and there is no row available at the next index.

        Show
        Nils Lundquist added a comment - Revision #27918 Committed by nils.lundquist ICE-7780 - Resolved by fast-ending iteration when returning from child rows to the root, and there is no row available at the next index.

          People

          • Assignee:
            Unassigned
            Reporter:
            Nils Lundquist
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: