I'm trying to create generic selectOneChoice elements. When the first
selectOneChoice value changes it should update the next one in the list and so
on.
I tried to do that via the id, partialTriggers and a ValueChangeListener:
<tr:iterator value="#{genericFormBean.formDesc.fieldList}"
var="field">
<tr:selectOneChoice
id="#{field.id}"
partialTriggers="#{field.partialTriggers}"
valueChangeListener="#{genericFormBean.valueChange}"
value="#{genericFormBean.formDesc.modelMap[field.id]}"
<f:selectItems
value="#{genericFormBean.selectItemMap[field.itemList]}" />
</tr:selectOneChoice>
<tr:iterator>
But I cannot set the id of the selectOneChoice element. When I try to get the
other selectOneChoice elements in the valueChangeListener I just see one
element in the iterator.childs() collection. Why is that?
I also tried to use a custom renderer to set the id, but as soon I change the
id of one selectOneChoice element all other elements are getting the same id.
It's pretty confusing to me.
Is there another way to do that?
Best Regards,
Andreas