Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.2.9-core
    • Fix Version/s: 1.2.10-core, 1.0.10-core
    • Component/s: Archetype
    • Labels:
      None
    • Environment:
      JSF RI Mojarra (1.2_08-b06-FCS), JBoss Seam 2.0.2.SP1, Facelets 1.1.14, Tomcat 6.0.14

      Description

      I'm using a facelet component which sets a variable to the row of a tr:table (<c:set var="entity" value="#

      {row}" />). This variable is then used in a child table (which is also a facelet component) as source value.
      In 1.2.9 this approach does not work anymore. The entity is set to the current row of the child table and does not contain the row entity set before.

      Up to 1.2.8, all works fine. I checked the fixes for 1.2.9, but could not find a related one.

      facelet tag code snippet:

      <ui:composition>
      <c:choose>
      <c:when test="${empty value}">
      <c:set var="source" value="${backingBean.list}" />
      </c:when>
      <c:otherwise>
      <c:set var="source" value="${entity[value]}" />
      </c:otherwise>
      </c:choose>
      <c:choose>
      <c:when test="${empty eventBinding}">
      <c:set var="binding" value="${backingBean}" />
      </c:when>
      <c:otherwise>
      <c:set var="binding" value="${eventBinding}" />
      </c:otherwise>
      </c:choose>
      <tr:table value="${source}" binding="${binding.model}" var="row">
      <c:set var="entity" value="#{row}

      " />
      <ui:insert />
      <tr:column headerText="Actions">
      <tr:panelButtonBar>
      <tr:commandLink action="#

      {backingBean.edit}

      " text="Edit" partialSubmit="true" rendered="#

      {!backingBean.editMode and backingBean.visibleOnly}

      " immediate="true" />
      <tr:commandLink action="#

      {backingBean.save}

      " text="Save" partialSubmit="true" rendered="#

      {!backingBean.visibleOnly}" />
      <tr:commandLink action="#{backingBean.cancel}" text="Cancel" partialSubmit="true" rendered="#{!backingBean.visibleOnly}

      " immediate="true">
      <tr:resetActionListener/>
      </tr:commandLink>
      </tr:panelButtonBar>
      </tr:column>
      </tr:table>
      </ui:composition>

      xhtml code snippet:

      <i:ietable panelCaption="Samples" backingBean="#

      {samples}

      " eventBinding="#

      {samplesBindings}

      ">
      <i:field label="ID" name="id" columns="6" readOnly="true"/>
      <f:facet name="detailStamp">
      <i:ietable panelCaption="Findings" value="findings" backingBean="#

      {findings}

      " eventBinding="#

      {findingsBindings}

      " parent="#

      {row}

      " nested="true">

      1. testCase.zip
        5 kB
        Mathias Walter

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Matthias Weßendorf
            Reporter:
            Mathias Walter
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development