El Expression to fetch the iterator key with index .
959967Mar 8 2013 — edited Mar 8 2013I am using a select one choice in the following manner.
<af:selectOneChoice value="#{bindings.EmployeeId.inputValue}"
label="#{bindings.EmployeeId.label}"
required="#{bindings.EmployeeId.hints.mandatory}"
shortDesc="#{bindings.EmployeeId.hints.tooltip}"
id="soc3" autoSubmit="true" partialTriggers="soc1">
<!-- f:selectItems value="#{bindings.EmployeeId.items}" id="si2"/ -->
*<af:forEach items="#{bindings.EmployeeId.items}" var="vars">*
*<af:selectItem id="sel90" value="#{vars.value}"*
*label="#{vars.label}"/>*
*</af:forEach>*
</af:selectOneChoice>
------------------------
Its working fine, now my requirement is not to allow rendering of some of the attributes in the select item. let say I want to display only those employees which have department as 40.
so doing like this (I want to avoid bean code).
<af:selectOneChoice value="#{bindings.EmployeeId.inputValue}"
label="#{bindings.EmployeeId.label}"
required="#{bindings.EmployeeId.hints.mandatory}"
shortDesc="#{bindings.EmployeeId.hints.tooltip}"
id="soc3" autoSubmit="true" partialTriggers="soc1">
<!-- f:selectItems value="#{bindings.EmployeeId.items}" id="si2"/ -->
<af:forEach items="#{bindings.EmployeeId.items}" var="vars">
<af:selectItem id="sel90" value="#{vars.value}"
*rendered="#{bindings.EmployeesVO1Iterator.allRowsInRange[vars.value].attribute[10] eq 40}*
label="#{vars.label}"/>
</af:forEach>
</af:selectOneChoice>
which is not working Please suggest a way to get the value of the other attribute in the lov. I want to know how to get the row for the index from iterator in the page using el expression.
Thanks
Vipin