我不知道如何从datatable中删除一行。
这是我的Facelet:
<p:commandButton id="confirm" value="Valider" update=":messages" oncomplete="dialogdelete.hide()"
actionListener="#{agentBean.btnDelete}" styleClass="ui-confirmdialog-yes" icon="icon-ok"/>
会话bean:
public void delete (Agentministere agentministere) {
agentministereFacade.remove(agentministere);
}
Managed Bean:
public String btnDelete (){
manager.delete(agentministere);
return "AgentList";
}