You can access a list item at a specific index using text binding [].
@ManagedBean
@RequestScoped
public class Bean {
private List<String> list;
@PostConstruct
public void init() {
list = Arrays.asList("one", "two", "three");
}
public List<String> getList() {
return list;
}
}
<br />
<br />
Regarding parameter passing, perhaps this is possible. EL 2.2 (or JBoss EL when you're still on EL 2.1) supports calling bean methods with arguments.
See also:
, , , , , <ui:repeat> <h:dataTable>, . .
<ui:repeat value="#{bean.list}" var="item">
#{item}<br/>
</ui:repeat>
<h:dataTable value="#{bean.list}" var="item">
<h:column>#{item}</h:column>
</h:dataTable>
. :