title: Dynamically assigning IDs to tags using an EL variable
body: <p>I want to loop over a number of "guests" and insert an id dynanimally</p>
  
  <pre><code>&lt;ui:repeat value="#{guestList}" var="guest"&gt;
      &lt;p:inputText id="firstname_#{guest.uniqueID}" value="" label="Firstname" /&gt;
      &lt;p:message for="firstname_#{guest.uniqueID}" /&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>The problem is, that the <code>&lt;p:message /&gt;</code>cannot resolve <code>firstname_#{guest.uniqueID}</code></p>
  
  <blockquote>
    <p>javax.faces.FacesException - Cannot find component "firstname_1" in view.
    at org.primefaces.component.message.MessageRenderer.encodeEnd(MessageRenderer.java:41)</p>
  </blockquote>
  
  <p>It works without any problems if I write a constant inside the loop, and also I am sure that the variable can be resolved, as I can output it in that loop.</p>
  
  <p>How can I instruct jsf or primefaces to resolve this variable?</p>