ICEfaces
  1. ICEfaces
  2. ICE-4720

Var of <ice:panelSeries> cannot be used by children's id parameter.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Maven 2.1.0,
      ICEfaces 1.8.1,
      Facelets

      Description

      If you try to pass the var of an <ice:panelSeries> element to the id parameter of its children, the var gets ignored.

      Code snippet to reproduce:
      private String[] id = new String[]{"1","2","3","asdf"};

      <ice:panelSeries value="#{storageBean.id}" var="item">
       <ice:panelGroup id="asdf#{item}">
        <ice:outputText id="out#{item}" value="#{item}" />
       </ice:panelGroup>
      </ice:panelSeries>

      I am expecting this after the first iteration:
      <div id="j_id8:j_id9:0:asdf1" class="icePnlGrp">
       <span id="j_id8:j_id9:0:out1" class="iceOutTxt">1</span>
      </div>

      This is what gets rendered:
      <div id="j_id8:j_id9:0:asdf" class="icePnlGrp">
       <span id="j_id8:j_id9:0:out" class="iceOutTxt">1</span>
      </div>

      Sample project attached to the forum post.

        Activity

          People

          • Assignee:
            Mark Collette
            Reporter:
            Armin Töpfer
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: