My problem is that I am trying to make dynamic tabs with tabPanel, so I want to read some information about that tabs from my bean. And that is why I am using c:foreach. So here is that piece of code:
<a4j:outputPanel id="output">
<rich:tabPanel width="40%" headerAlignment="right" switchType="client" binding="#{searchRequest.tabPanel}">
<rich:tab header="#{lang.tab_basic}" id="tabBasic" name="tabBasic">
............Content of the first non-dynamic tab..............
</rich:tab>
<c:forEach items="#{searchSession.tabs}" var="tab">
<rich:tab name="#{tab.name}" >
<f:facet name="label">
<h:panelGrid columns="2">
<h:outputText value="#{tab.name}" />
<h:graphicImage value="images/icons/delete.gif"
style="width:12px; height:12px;"
onclick="myFunc('#{tab.name}'); Event.stop(event);"/>
</h:panelGrid>
</f:facet>
<h:outputText value="#{tab.html}" escape="false"/>
</rich:tab>
</c:forEach>
</rich:tabPanel>
</a4j:outputPanel>
Everything seems clear to me, but as usual, there is something that I don't see, so I would be very thankful if someone could tell me what is that.