0

ActionListener在我的commandButton. 如何继续只有一个活动?我用了:

MethodExpression addLastmemo = _ef.createMethodExpression(FacesContext.getCurrentInstance().getELContext(), "#{dashboardBean.getLastMemo}", Void.class, new Class[]{ActionEvent.class});
button.addActionListener(new MethodExpressionActionListener(addLastmemo));

有没有办法删除/禁用一个actionListener

4

1 回答 1

1

尝试

button.removeActionListener(new MethodExpressionActionListener(addLastmemo));
于 2013-09-11T14:46:24.167 回答