title: How to construct dynamically attribute name in xhtml - JSF
body: <p>I want to assign a dynamic value to an input in xhtml page. The ManagedBean contains 3 string attributes: customField1, customField2 and customField3</p>
  
  <p>In the xhtml page I'm looping over a list of values to custruct components:</p>
  
  <pre><code>&lt;ui:repeat  value="#{listBean.customFields}" var="item" varStatus="status"&gt;
  &lt;div &gt;
      &lt;p:outputLabel value="#{item.label}" /&gt;
      &lt;br /&gt;
      &lt;c:set var="test" value="#{'myBean.customField'.concat(status.index)}"/&gt;
  
      &lt;p:inputText value="#{test}"   /&gt;
  &lt;/div&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>You think it is possible to do that in jsf ?</p>
  
  <p>thanks in advance !</p>