javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-889

<ui:repeat> inner variable can't be transmitted to a composite.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Components/Renderers
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      889
    • Status Whiteboard:
      Hide

      size_medium importance_small

      Show
      size_medium importance_small

      Description

      This source code based on a <c:forEach> loop is able to work:

      <c:forEach var="adresse" items="#

      {assoCtrl.association.adresses}">
      <territoire:adresse adresse="#{adresse}" />
      </c:forEach>


      But this one, based on an <ui:repeat> loop, fails:

      <ui:repeat var="adresse" value="#{assoCtrl.association.adresses}

      ">
      <territoire:adresse adresse="#

      {adresse}" />
      </ui:repeat>

      This message is received:
      "<territoire:adresse> The following attribute(s) are required, but no values
      have been supplied for them: adresse. "


      As a test, I changed the content of my loop that way:
      <ui:repeat var="adresse" value="#{assoCtrl.association.adresses}">
      <!-- The address content is: #{adresse}

      -->
      </ui:repeat>

      And found that the HTML page is displayed, no Exception thrown by JSF 2.0.3
      then. (I see that content on the HTML page that is created: <!-- The address
      content is: Adresse [nom: , complément de nom: null, complément de voie: null,
      voie: , code postal: 00000, ville: , pays: France, commentaire: null, types
      adresse: []] -->).

      Therefore, I think that the transmission of the var parameter of <ui:repeat> is
      faulty when an inner composite is targeted. I made some tries by promoting the
      value part of <ui:repeat> to various scopes, but without success.

      Regards,
      Grunt.

        Activity

        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        Hide
        Ed Burns added a comment -

        Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

        Show
        Ed Burns added a comment - Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
        Hide
        Manfred Riem added a comment -

        Setting priority to Minor

        Show
        Manfred Riem added a comment - Setting priority to Minor

          People

          • Assignee:
            Unassigned
            Reporter:
            grunt2000
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: