Primefaces "<p:ajax" listener javascript method -


i want listen picklist transfer event via javascript method,

listener works java bean :

<p:picklist value="#{picklistbean.cities}" var="city"  itemlabel="#{city}" itemvalue="#{city}"> <p:ajax event="transfer" listener="#{picklistbean.handletransfer}" /> </p:picklist> 

but doesn't work :

listener="myjavascriptmethod(event)" 

are there way listening events above?

listener serverside, in client can use oncomplete, onsuccess,..(your option):

 <p:ajax event="transfer" oncomplete="js_function()" />     <p:ajax event="transfer" onstart="js_function()" />     ... 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -