java/primefaces remoteCommand and commandButton into compositeComponent
<p>good morning everyone!</p>

<p>I'm trying to create a compositeComponent of dataTable, but I can not put remoteCommand and commandButton within the composite. My code follows:</p>

<pre><code>    &lt;html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:composite="http://java.sun.com/jsf/composite"
    xmlns:p="http://primefaces.org/ui"&gt;
    &lt;composite:interface&gt;
&lt;composite:attribute name="var" /&gt;
&lt;composite:attribute name="value" /&gt;
&lt;composite:attribute name="newLine" /&gt;
&lt;composite:facet name="header" /&gt;
&lt;composite:facet name="footer" /&gt;
    &lt;/composite:interface&gt;
    &lt;composite:implementation&gt;
&lt;h:outputScript name="js/helper.js" /&gt;
&lt;p:dataTable value="#{cc.attrs.value}" rowIndexVar="row"&gt;
    &lt;c:set target="#{component}" property="var" value="#{cc.attrs.var}" /&gt;
    &lt;composite:insertFacet name="header" /&gt;
    &lt;p:column&gt;
        &lt;h:outputText value="#{row + 1}" /&gt;
        &lt;p:remoteCommand action="#{contatoController.crud.save}"
            name="ajax#{row}"&gt;
                &lt;f:setPropertyActionListener                                          target="#{contatoController.crud.row}" value="#{contato}" /&gt;
        &lt;/p:remoteCommand&gt;
    &lt;/p:column&gt;
    &lt;composite:insertChildren /&gt;
    &lt;p:column&gt;
        &lt;p:commandButton ajax="false" title="Alterar" icon="ui-icon-trash"
            action="#{contatoController.crud.delete}" process="@this"&gt;
    &lt;f:setPropertyActionListener target="#           {contatoController.crud.row}"
                value="#{cc.attrs.var}" /&gt;
        &lt;/p:commandButton&gt;
    &lt;/p:column&gt;
    &lt;composite:insertFacet name="footer" /&gt;
&lt;/p:dataTable&gt;
</code></pre>

<p>
</p>

<p>When I click the value that comes in my ManagedBean is a string that I pass var on the property, but should reach the object from the line of dataTable.
Can someone help me?</p>

<p>Thank you!</p>
