jsf - How to call bean method when drag-drop the element using <p:pickList>? -


i using primefaces 3.3 library jsf based application.

i using <p:picklist> handle drag , drop element source target , vide versa.

i want call jsf bean method when element transferring(by drag-drop ) source target , vice versa , handle logical things there.

i follow link primefaces showcase picklist implement functionality. version 5.2.7.

in primefaces 5.2.7 can done <p:ajax event="transfer" /> , how can achieve using primafaces 3.3.

i try valuechangelistener attribute not working. there 1 attribute called ontransfer , clientside callback.

this can achieve putting submit button. want achieve on drag , drop. how can ?

thanks in advance.

first, should consider update of primefaces version. updates not provided new features bug fixes, improvements (performance, stability) etc.

currently cannot find documentation 3.3, try using p:remotecommand (its in 3.5 documentation, maybe available):

use ontransfer="submittobean()" along p:remotecommand might this:

<p:remotecommand     name="submittobean"     action="#{mybean.dosomething}"    process="idofyourpicklist"     partialsubmit="true" /> 

then ontransfer event call javascript method submittobean() in turn process picklist , call action method.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -