Iterate over a series of items?

I have a List of elements that I would like to display with a custom form field next to each one.

The 'dataTable' tag does not meet my needs for I am not just displaying a series of data rows, I am providing custom for input fields along with the data row display.

I see that JSTL has a foreach tag, yet JSF does not. How can I iterate over a series of elements in JSF?

[390 byte] By [aantixa] at [2007-11-26 15:51:02]
# 1

You can use JSTL in JSF.

<table>

<c:forEach

items="${sessionScope.MortgageLoanAccount.allScenarios}"

var="scenario">

<tr>

<td><c:out value="${scenario.id}"/></td>

<td><c:out value="${scenario.principal}"/></td>

<td><c:out value="${scenario.interestRate}"/></td>

<td><c:out value="${scenario.term}"/></td>

<td><c:out value="${scenario.monthlyPayment}"/></td>

</tr>

</c:forEach>

</table>

I hope this helps

ferric4a at 2007-7-8 22:11:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...