这是我的代码:
<a4j:repeat ......>
<rich:datatable>
<rich:column>
<a4j:commandLink value="Edit" action="#{poReceiptBean.testMethod()}"
actionListener="#{poReceiptBean.addRowListener}" oncomplete="#
{rich:component('editReceiptModal')}.show();"></a4j:commandLink>
</rich:column>
</rich:datatable>
</a4j:repeat>
Bean:
public void addRowListener(ActionEvent event){
addInventoryRow = true;
}
public void testMethod() {
System.out.println("hi");
}
action和actionListener都没有调用bean方法。如何解决这个问题?任何帮助将不胜感激。