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
Post a Comment