title: Primefaces commandButton only working on first entry of a carousel component
body: <p>I use a Primefaces carousel component to display a list of items. What i would like to do is show a commandButton on every carousel item which triggers a method on the bean to confirm or decline the entry.</p>
  
  <p>Now it works only for the first entry of the carousel. Clicking on another entry does not invoke the action confirmResource. I guess it has something to do with the IDs but i can't figure it out.</p>
  
  <p>Here's the form:</p>
  
  <pre><code>&lt;h:form id="form" prependId="false"&gt;
  &lt;p:carousel id="resourceCarousel" value="#{resourceRatingBean.resourceProposalList}" var="var" rows="1" itemStyle="width:500px; height: 400px; text-align:center;" circular="true"&gt;
      &lt;p:column&gt;
  
          &lt;h:panelGrid columns="1" cellpadding="3"&gt;
              &lt;p:graphicImage value="/cache/images/#{var.imagePath}" width="100"/&gt;
              &lt;h:outputText value="#{var.imagePath}" /&gt;
              &lt;h:outputText value="#{var.name}" /&gt;
              &lt;h:outputText value="#{var.description}" /&gt;
          &lt;/h:panelGrid&gt;
  
          &lt;p:commandButton value="confirm" action="#{resourceRatingBean.confirmResource}" process="@this"&gt;
              &lt;f:setPropertyActionListener value="#{var}" target="#{resourceRatingBean.ratedResource}" /&gt;
          &lt;/p:commandButton&gt;
  
      &lt;/p:column&gt;
  &lt;/p:carousel&gt;
  &lt;/h:form&gt;
  </code></pre>