I'm trying to use JSTL with JSF 1.1. The following code is causing me a problem:
<c:forEach var="key" items="${names}">
<h:column>
<f:facet name="header">
<h:outputText value="#{key}"/>
</f:facet>
<h:outputText value="#{key}"/>
</h:column>
</c:forEach>
where names is a String list. Names are the key of a map contained in data displayed in the table i.e. I'm trying to do accomplish something like this:
<h:outputText value="#{data.fooMap[key]}"/>
This code is working fine outside h:dataTable (iteration and display of names), but when I put it inside the table nothing is displayed.
Does anyone has a clue how to fix this problem?
Is there a JSF tag that can iterate over the list inside the h:dataTable?
Any help would be appreciated!