ajax4jsf - the difference between a4j ajax listener and action in ajax call. -


please me understand difference between a4j ajax listener , action in ajax call.

<a4j:commandbutton id="abc" value="abc">     <a4j:ajax execute="@this"      ***listener="#{mybean.update()}"** or action = "#{#{mybean.update()}"***     oncomplete="#{rich:component('mypopup')}.show(); return false;" /> </a4j:commandbutton> 

i removed <a4j:ajax > tags below.

<a4j:commandbutton id="abc" value="abc">     execute="@this"     action = "#{mybean.update()"     oncomplete="#{rich:component('mypopup')}.show(); return false;" /> </a4j:commandbutton> 

then work action , <a4j:ajax > tags, action doesn't trigger method in bean while listener triggered.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -