Java JSF 1.2在Wildfly和beforePhaseListener上

Java JSF 1.2在Wildfly和beforePhaseListener上,java,jsf,Java,Jsf,我试图在WildFly上运行我的应用程序JSF1.2,但我的视图标记中的AttributeBeforePhaseListener不起作用。我在wildfly上安装了JSF 1.2的所有库,在我的Web.XML中,我有以下值: org.jboss.jbossfaces.JSF_CONFIG_名称 莫哈拉-1.2 . 在我的Xhtml中,我有: f:视图 xmlns=”http://www.w3.org/1999/xhtml" xmlns:ui=”http://java.sun.com/jsf/

我试图在WildFly上运行我的应用程序JSF1.2,但我的视图标记中的AttributeBeforePhaseListener不起作用。我在wildfly上安装了JSF 1.2的所有库,在我的Web.XML中,我有以下值:


org.jboss.jbossfaces.JSF_CONFIG_名称
莫哈拉-1.2
.
在我的Xhtml中,我有:

f:视图
xmlns=”http://www.w3.org/1999/xhtml"
xmlns:ui=”http://java.sun.com/jsf/facelets"
xmlns:h=”http://java.sun.com/jsf/html"
xmlns:f=”http://java.sun.com/jsf/core"
xmlns:a4j=”http://richfaces.org/a4j"
xmlns:rich=”http://richfaces.org/rich"
beforePhaseListener=“#{myBean.beforePhase}”
在myBean中,我有一个方法签名:

前期公共作废(阶段事件)
但我总是犯这样的错误:

类“myBean”没有属性“beforePhase”

多谢各位