I have a JSTL <c:forEach>
loop:
<c:forEach items="${myBean.itemList}" var="items"/>
The loop creates an <h:selectOneMenu>
with <f:selectItem>
:
<h:selectOneMenu title="selectMenu">
<f:selectItem itemLabel="First Item" itemValue="${items.itemID}"/>
</h:selectOneMenu>
I am not able to access the ${items.itemID} in the itemValue tag.
I have tried using both #{}
and ${}
syntax, and neither are working properly. The value always appears to be null. I know that it is not null as there is another button that passes in the <c:forEach>
var
and it is not null.
Is there any way I can access that var from the <c:forEach>
loop inside of my <f:selectItem>
?