複数のアクションリスナーを使用して、さらに処理する前に 2 つのバッキング Bean の状態を設定したい
最初の方法:
<p:commandButton process="@this" >
<f:attribute name="key" value="#{node.getIdTestGroup()}" />
<f:actionListener binding="#{testController.nodeListener}" />
<f:actionListener binding="#{testDeviceGroupController.prepareCreate}" />
</p:commandButton>
例外があります:
WARNING: /testGroup/List.xhtml @26,88 binding="#{testController.nodeListener()}": メソッド nodeListener が見つかりません javax.el.ELException: /testGroup/List.xhtml @26,88 binding="#{ testController.nodeListener()}": メソッド nodeListener が見つかりません
2 番目の方法:
<p:commandButton process="@this" >
<f:attribute name="key" value="#{node.getIdTestGroup()}" />
<f:actionListener binding="#{testController.nodeListener(event)}" />
<f:actionListener binding="#{testDeviceGroupController.prepareCreate(event)}" />
</p:commandButton>
イベントは nodeListener および prepareCreate メソッドで null です
どうすれば正しいですか?