javax.el.MethodNotFoundException'调用actionlistener时

时间:2015-08-18 11:49:59

标签: jsf jsf-2

如何从两个不同的bean调用actionactionListner,我已添加以下代码

<a4j:commandButton  id="editAlarm"  immediate="false" execute="@this" actionListener="#{cfsBean.updateCfsGroupFeature(itemsComp,tableIndex.index)}"
                                                    action="#{addFeaturePopUpBean.updateCfsGroupFeature(itemsComp,tableIndex.index)}" >

和Bean有这个代码

public String updateCfsGroupFeature(ActionEvent event,CompositeCharGroupVo value, Integer row) {
}

但我得到了

  

javax.el.MethodNotFoundException&#39;在调用动作侦听器时   &#39;#{cfsBean.updateCfsGroupFeature(itemsComp,tableIndex.index)}&#39;对于   组件&#39; editAlarm&#39;

现在Differences between action and actionListener @Baluc 提到我们可以传递actionListner中的参数

<h:commandXxx ... actionListener="#{bean.methodWithOneArgument(arg1)}" />
<h:commandXxx ... actionListener="#{bean.methodWithTwoArguments(arg1, arg2)}" />

0 个答案:

没有答案
相关问题