Hi, everyone!!
Anyone knows why my listener method (remessaBean.delEmbque) is called twice?
<x:dataTable value="#{remessaBean.valuesEmbque}" var="values" width="760"
cellpadding="0" cellspacing="1"
rowClasses="inputFields" headerClass="fields">
<x:column>
<f:facet name="header">
<h:outputText value="Excluir" styleClass="forms"/>
</f:facet>
<h:commandButton actionListener="#{remessaBean.delEmbque}"
style="cursor:hand;vertical-align:middle;"
image="/eServices/eservices/images/trash.gif" />
</x:column>
</x:dataTable>
public void delEmbque(ActionEvent e) {
int index = valuesEmbqueModel.getRowIndex();
ArrayList currentValues = (ArrayList) valuesEmbqueModel.getWrappedData();
currentValues.remove(index);
valuesEmbqueModel.setWrappedData(currentValues);
}
Thanks.
Guedes