AnsweredAssumed Answered

c:forEach on JSF page

Question asked by akomisarek on Jan 7, 2010
Latest reply on Jan 7, 2010 by invictus9
Hello,

I have problem with forEach tag in my dialog page.

        <f:verbatim>
              <c:forEach items="${DialogManager.bean.metrics}" var="abc">
                  1!${abc.fileName}!1
              </c:forEach>
      </f:verbatim>
Works properly, but when I try to use forEach in that way:

   
<f:verbatim>
    <c:forEach items="${DialogManager.bean.metrics}" var="abc">
        <h:panelGrid columns="1" cellpadding="2" style="padding-top: 4px; padding-bottom: 4px;" width="100%" rowClasses="wizardSectionHeading">
             <h:outputText value="#{msg.project_metrics} #{abc.fileName}!" />
       </h:panelGrid>
     </c:forEach>
</f:verbatim>

it doesn't work! abc.fileNme is empty - even though getMetrics is invoked in managed bean.I tried in this way:              <h:outputText value="#{msg.project_metrics} " /> ${abc.fileName}!

What I am doing wrong? Can't get it to wrok inside panelGrid :(.

Thanks for help,
Adam

Outcomes