0

にいくつか追加しActionListenerましたcommandButton。1つだけアクティブにする方法は?私が使用した:

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 に答える