Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-4980

JavaScript error when using nested ui:repeat tags inside rich:panelBar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.2.2
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None

      Description

      When having nested ui:repeat tags inside rich:panelBar FireFox 3 shows a JavaScript error and the content of the inner ui:repeat does not render.

      Following is sample xhtml:

      <h:form id="panelbarrepeaterForm">

      <rich:panelBar>
      <ui:repeat value="#

      {allPeople}

      " var="person">
      <rich:panelBarItem label="#

      {person.fname}

      , #

      {person.lname}

      ">
      <ul>
      <ui:repeat value="#

      {person.pets}

      " var="pet">
      <li><a4j:commandLink value="#

      {pet.name} - #{pet.type}">
      <f:setPropertyActionListener value="#{pet.name}

      "
      target="#

      {panelbarrepeater.clickedPet}

      " />
      </a4j:commandLink></li>
      </ui:repeat>
      </ul>
      </rich:panelBarItem>
      </ui:repeat>
      </rich:panelBar>

      </h:form>

      And the JavaScript error:

      Error: this.items[index] is undefined
      Source File: http://localhost:8080/forcustomer/a4j/g/3_2_2.GAscripts/panelbar.js
      Line: 15

      I have uploaded test case which uses a Seam component as backing bean.
      This was tested with both 3.2.2.SR1 and 3.2.2.GA

        Gliffy Diagrams

          Attachments

          1. Panelbarrepeater.java
            2 kB
          2. panelbarrepeater.xhtml
            1 kB
          3. Person.java
            0.8 kB
          4. Pet.java
            0.4 kB

            Activity

              People

              • Assignee:
                mvitenkov Mikhail Vitenkov
                Reporter:
                tsurdilovic Tihomir Surdilovic
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: