How have to call action
and actionListner
from two different bean and i have added below code
<a4j:commandButton id="editAlarm" immediate="false" execute="@this" actionListener="#{cfsBean.updateCfsGroupFeature(itemsComp,tableIndex.index)}"
action="#{addFeaturePopUpBean.updateCfsGroupFeature(itemsComp,tableIndex.index)}" >
and Bean have this code
public String updateCfsGroupFeature(ActionEvent event,CompositeCharGroupVo value, Integer row) {
}
But i am getting
javax.el.MethodNotFoundException' when invoking action listener '#{cfsBean.updateCfsGroupFeature(itemsComp,tableIndex.index)}' for component 'editAlarm'
Now Differences between action and actionListener @Baluc mentioned we can pass argument in actionListner
as well
<h:commandXxx ... actionListener="#{bean.methodWithOneArgument(arg1)}" />
<h:commandXxx ... actionListener="#{bean.methodWithTwoArguments(arg1, arg2)}" />