voglio utilizzare più action listener per impostare lo stato di due chicchi di backing prima di ulteriori trasformazionimultipli actionlisteners in JSF
1 ° modo:
<p:commandButton process="@this" >
<f:attribute name="key" value="#{node.getIdTestGroup()}" />
<f:actionListener binding="#{testController.nodeListener}" />
<f:actionListener binding="#{testDeviceGroupController.prepareCreate}" />
</p:commandButton>
E dare un'eccezione:
ATTENZIONE : /testGroup/List.xhtml @ 26,88 binding = "# {testController.nodeListener()}": metodo nodeListener non trovato javax.el.ELException: /testGroup/List.xhtml @ 26,88 binding = "# { testController.nodeListen er()} ": Metodo nodeListener non trovato
2 ° modo:
<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>
evento è nullo sulle nodeListener e prepareCreate metodi
come farlo correttamente?
correlati: http://stackoverflow.com/questions/3909267/differences-between-action-and- actionlistener/3909382 # 3909382 – BalusC