I'm using JSF 1.2 and I'm trying to delete and/or update a row in a <h:dataTable>
whereby the current row is passed as argument of action method.
View:
<h:dataTable value="#{myBean.list}" var="categoria">
...
<h:column>
<h:commandButton value="Update" action="#{myBean.updateCat(categoria)}" />
<h:commandLink value="Delete" action="#{myBean.deleteCat(categoria.cod)}" />
</h:column>
</h:dataTable>
Controller:
public void deleteCat(int cod) {
this.controller.deleteCat(cod);
}
public void updateCat(Categoria cat) {
this.controller.updateCat(cat);
}
But I'm getting the following error:
The function deleteCat must be used with a prefix when a default namespace is not specified
How is this caused and how can I solve it?