2011-07-14 3 views

答えて

2

AFAIKのEL式では、1つの式で複数のメソッドを呼び出すことはできません。

これらの2つの関数を新しい関数にラップし、代わりにこの新しい関数を呼び出すことをお勧めします。例えば

action="#{bean.onPressLink()}" 

そしてonPressLink()は、その名前で管理対象Beanを取得するにはA.actionA()B.actionB()

public void onPressLink(){ 
    //Get the managed bean called A and then call its actionA(); 
    //Get the managed bean called B and then call its actionB(); 
} 

を呼び出します、あなたはこのthreadを参照することができます。

関連する問題