p:ajax中的actionListener

问题描述 投票:0回答:1

我对p:ajax中的actionListener属性有些困惑,它没有出现在primefaces 5.2.2的taglib中,Eclipse也这样认为,因为它将其标记为不存在。primefaces-p:ajax attributesn

但是代码有效,使用ActionEvent参数调用bean中的方法。

<p:ajax event="change" actionListener="#{bean.actionlistenerMethod}" update="stuff" />

所以我的问题是,actionListener如何工作?

惯用语:5.2.2JSF:2.1.16JBoss EAP 6.1

primefaces jsf-2 xhtml actionlistener
1个回答
0
投票

您可以在taglib和doc中看到,要使用的正确属性是“侦听器”。也许他们在后端介绍了“ actionListener”只是为了省略这种错误。

© www.soinside.com 2019 - 2024. All rights reserved.