I have following block of code:
<ui:repeat
value="#{view.listOfItems}"
var="var" id="list">
<td>
<h:selectOneMenu id="status" styleClass="form-control" value="${var.status().text()}">
<f:selectItems id="statusDdl" value="#{view.statusToApply.getLabels()}" />
</h:selectOneMenu>
</td>
</ui:repeat>
This block of code is inside a uiRepeat tag, so for every var
in my list I repeat this block of code. I'd need a way to have a method launch in my View on select of a selectItem
, with as parameter the actual label
of that selectItem
and the var
to be changed, so that, based on that label, I can myself put a new status in the var. After that I'll probably need to rerender that specific selectOneMenu component to show the new status.
How can this be achieved? Thanks in advance.