As mentioned in primefaces showcase we can easily get the items from transfer event in the backing bean. However I need the items in my javascript function, as I need to add a css class after each item has been transfered to the target.
This is my xhtml:
<p:pickList id="PojoPickList" value="#{pickListView.themes}" var="theme" effect="bounce"
itemValue="#{theme}" itemLabel="#{theme.displayName}" showSourceControls="true" showTargetControls="true" showCheckbox="true" responsive="true"
showSourceFilter="true" showTargetFilter="true" filterMatchMode="contains" converter="theme">
...
<p:ajax event="transfer" oncomplete="onTransfer(event);" />
...
and javascript function:
function onTransfer(event) {
console.log(event);
}
But the event is undefined.Thanks.