Hello I am using JSF and PrimeFaces 3.5 2.1.17, I have the code below:
<p:dataTable id="resultTable" var="entity" value="#{requerimentoBean.entitys}" >
<p:column style="width: 22px;">
<p:commandLink actionListener="#{requerimentoBean.prepareEdition(entity)}">
<h:graphicImage library="images" title="Editar" name="edit.png" style="border: none;" />
</p:commandLink>
</p:column>
</p:dataTable>
the problem occurs on this line:
<p:commandLink actionListener="#{requerimentoBean.prepareEdition(entity)}">
Error occurs when I place the entity parameter. the method can not prepareEdition is accessor.
public void prepareEdition(Requerimento entity){
System.out.println("***** Método preperaEdition ****");
System.out.println("***** ID: " + entity.getId() + "*****");
setEntity(logic.getById(entity.getId()));
}
if you can help thanks