Primefaces commandButton only working on first entry of a carousel component
===

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.

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.

Here's the form:

    <h:form id="form" prependId="false">
    <p:carousel id="resourceCarousel" value="#{resourceRatingBean.resourceProposalList}" var="var" rows="1" itemStyle="width:500px; height: 400px; text-align:center;" circular="true">
        <p:column>

            <h:panelGrid columns="1" cellpadding="3">
                <p:graphicImage value="/cache/images/#{var.imagePath}" width="100"/>
                <h:outputText value="#{var.imagePath}" />
                <h:outputText value="#{var.name}" />
                <h:outputText value="#{var.description}" />
            </h:panelGrid>

            <p:commandButton value="confirm" action="#{resourceRatingBean.confirmResource}" process="@this">
                <f:setPropertyActionListener value="#{var}" target="#{resourceRatingBean.ratedResource}" />
            </p:commandButton>

        </p:column>
    </p:carousel>
    </h:form>