我正在使用 h:commandLink 进行删除,单击此链接可以启用确认对话框,但是当我单击确定时,它没有删除..我需要再添加吗?请帮助。
<h:commandLink update="#{cc.attrs.ajaxupdate}"
onclick="if (! confirm('Are you sure, you want to remove picture?') ) { return
false;}; return true; ">
<f:ajax listener="#{cc.attrs.deleteactionlistener}"/>
<p:graphicImage value="/resources/images/delete.gif" />
</h:commandLink>