chcę użyć wielu słuchacza działania określających stan dwóch ziaren podkładowych przed dalszym przetwarzaniemWiele actionlisteners w JSF
1st sposób:
<p:commandButton process="@this" >
<f:attribute name="key" value="#{node.getIdTestGroup()}" />
<f:actionListener binding="#{testController.nodeListener}" />
<f:actionListener binding="#{testDeviceGroupController.prepareCreate}" />
</p:commandButton>
dać wyjątek:
OSTRZEŻENIE : /testGroup/List.xhtml @ 26,88 binding = "# {testController.nodeListener()}": nie znaleziono metody nodeListener javax.el.ELException: /testGroup/List.xhtml @ 26,88 binding = "# { testController.nodeListen er()} ": Metoda nodeListener Nie znaleziono
2nd sposób:
<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>
zdarzenie jest zerowy na nodeListener i prepareCreate metod
jak zrobić to prawidłowe?
pokrewne: http://stackoverflow.com/questions/3909267/differences-between-action-and- actionlistener/3909382 # 3909382 – BalusC