facelets
  1. facelets
  2. FACELETS-349

nested ui:repeat does not work when datamodel is changed in invoke application phase

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.14
    • Fix Version/s: 1.1.15
    • Component/s: impl
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      349

      Description

      I have a nested ui:repeat like this:

      <ui:repeat var="item" value="#

      {context.selectItemListRows}

      ">
      <tr>
      <ui:repeat var="item" value="#

      {row}

      ">
      <td>
      <h:outputLabel for="itemSelector" styleClass="#

      {item.selected ? 'active' : ''}

      ">
      <h:selectBooleanCheckbox id="itemSelector" value="#

      {item.selected}

      "/>
      <h:outputText value="#

      {item.label}

      "/>
      </h:outputLabel>
      </td>
      </ui:repeat>
      </tr>
      </ui:repeat>

      Everything works fine except that updates to the DataModel (nested list in this
      case) in the invoke application phase are not reflected in the value of the
      stamped checkbox component. This is because the value is locally set and the
      expression is not evaluated again. Otherwise the expression evaluation would
      return the corrcet value.

      1. proposedPatch-20090703.diff
        1 kB
        josefreire
      2. proposedPatch-20091229.diff
        2 kB
        josefreire

        Activity

        Hide
        josefreire added a comment -

        Created an attachment (id=136)
        Simple test to show the bug in actions

        Show
        josefreire added a comment - Created an attachment (id=136) Simple test to show the bug in actions
        Hide
        josefreire added a comment -

        Created an attachment (id=137)
        Proposed patch

        Show
        josefreire added a comment - Created an attachment (id=137) Proposed patch
        Hide
        josefreire added a comment -

        Created an attachment (id=144)
        Proposed patch (don't clear child state if there are validation errors)

        Show
        josefreire added a comment - Created an attachment (id=144) Proposed patch (don't clear child state if there are validation errors)

          People

          • Assignee:
            Unassigned
            Reporter:
            stemey
          • Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: