Details

    • Issuezilla Id:
      62

      Description

      there is datatable nested in datable and commandlink within. sth like:

      <h:dataTable value="#

      {bean.xxx}

      " var="yyy">
      <h:column>
      <h:dataTable value="#

      {yyy.zzz}

      " var="www">
      <h:column>
      <h:commandLink action="#

      {bean.action}

      ">
      </h:column>
      </h:dataTable>
      </h:column>
      </h:dataTable>

      xxx and zzz are both ListDataModel objects (explicitly created). in bean action
      i'm trying to get current row data from zzz, sth like:
      YYYClass yyyInstance = (YYYClass) xxx
      .getRowData();
      WWWClass wwwInstance = (WWWClass ) yyyInstance
      .getZZZ().getRowData();

      when i click on the link, the exception is thrown in the second getRowData:
      java.lang.IllegalArgumentException
      at javax.faces.model.ListDataModel.getRowData(ListDataModel.java:119)
      it seems that the current row index is -1.
      everything is fine only when i click on any link in last row of the first
      table (nevermind the row in nested table).
      i've investigated the problem a little. it seems, that index in zzz data model
      is always set only in the last instance of yyy.zzz, nevermind which row in
      first table was clicked.

      workaround is to use <f:param> for passing values needed in action processing.

      in issue header i've put url to forum topic with similar problem description.

        Activity

        Hide
        Ed Burns added a comment -

        take ownership

        Show
        Ed Burns added a comment - take ownership
        Hide
        Ed Burns added a comment -

        Let me try this out. It may have been fixed by my patch for Sun internal
        bugtraq Let me try this out. It may have been fixed by my patch for Sun internal
        bugtraq bug 5060060.

        Ed.

        Ed

        Show
        Ed Burns added a comment - Let me try this out. It may have been fixed by my patch for Sun internal bugtraq Let me try this out. It may have been fixed by my patch for Sun internal bugtraq bug 5060060. Ed. Ed
        Hide
        Ed Burns added a comment -

        Ok, I'm seeing the IAE.

        Show
        Ed Burns added a comment - Ok, I'm seeing the IAE.
        Hide
        Ed Burns added a comment -

        Committed mods for this testcase to nested-datatables system test per webapp.

        Show
        Ed Burns added a comment - Committed mods for this testcase to nested-datatables system test per webapp.
        Hide
        Ed Burns added a comment -

        Ah, I was accidentally running the testcase against the JSF that comes with
        glassfish, which comes JSF 1.2. Of course, they don't pick up nightly builds of
        Faces, so it didn't have the fix for 5060060. When I run the test with the
        latest trunk, it works. Marking fixed.

        Show
        Ed Burns added a comment - Ah, I was accidentally running the testcase against the JSF that comes with glassfish, which comes JSF 1.2. Of course, they don't pick up nightly builds of Faces, so it didn't have the fix for 5060060. When I run the test with the latest trunk, it works. Marking fixed.
        Hide
        Manfred Riem added a comment -

        Closing issue out

        Show
        Manfred Riem added a comment - Closing issue out

          People

          • Assignee:
            Ed Burns
            Reporter:
            jesion
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: