0

我使用 Mojarra、primeFaces 6.2 和 Liberty server 18.0.0.4 版本在 JSF 2.2 中开发了项目。现在正在升级到 JSF 2.3。我在我的项目类路径中添加了 jar 文件 javax.faces.2.3.8.jar。当我运行项目时出现以下错误,

 <f:ajax> Event:select is not supported

下面是 h:selectOneMenu 的 .xhtml 代码

<h:selectOneMenu id="viewpanel" value="#{columnBean.columnView}" valueChangeListener="#{columnBean.dochange}">
   <f:selectItems value="#{columnBean.columnList}"/>
   <f:ajax event="change" listener="#{columnBean.getIdList()}" onstart="PF('wait').show();"/>
   <f:ajax event="select" listener="#{columnBean.getIdList()}" onstart="PF('wait').show();"/>
</h:selectOneMenu>

JSF 2.2 运行良好,没有任何问题。在 JSF 2.3 中,我面临上述问题。

4

1 回答 1

1

在 JSF 2.3 中为选择组件删除了 onselect 事件。请参阅下面的 JSF 2.3 文档 https://javaee.github.io/javaserverfaces-spec/downloads/JSF_2_3/Final/JSF_2.3.pdf

于 2019-06-03T06:30:45.553 回答