I want to assign a dynamic value to an input in xhtml page. The ManagedBean contains 3 string attributes: customField1, customField2 and customField3
In the xhtml page I'm looping over a list of values to custruct components:
<ui:repeat value="#{listBean.customFields}" var="item" varStatus="status">
<div >
<p:outputLabel value="#{item.label}" />
<br />
<c:set var="test" value="#{'myBean.customField'.concat(status.index)}"/>
<p:inputText value="#{test}" />
</div>
</ui:repeat>
What I did for concatenation does not work since it concider that the whole expression is a String so it is unable to bind "#{test}" with the bean attribute.
You think it is possible to do that in jsf ?
thanks in advance !
value="#{myBean.customField}#{status.index}"