0
MethodExpression methodExpression =
application.getExpressionFactory().createMethodExpression(
FacesContext.getCurrentInstance().getELContext(),
"#{PrismBacking.onItemClick}",
null,
new Class[] { ActionEvent.class });
menuItem.setActionExpression(methodExpression);
我创建了一个动态的下拉,如上我的创建动作侦听器,但没有调用侦听器。我将该方法包含在后台bean的下拉getter中。我必须在任何配置文件中配置动作监听器吗?善意帮助。创建动态丰富:dropdownmenu