Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
hamza jemai
Drag&Drop DataTable Primefaces with liferay
23 octobre 2013 10:53

hamza jemai

Rang: Junior Member

Publications: 40

Date d'inscription: 4 décembre 2012

Publications Récentes

Im on PF 4.0/3.5 in Liferay 6.1 and trying to implement the Drag&Drop DataTable from the showcase " ". I downloaded the original code and Im using it.

The behaviour is that when I drag an item and drop into the "Selected Cars" zone, the draggable arrows icon dissapears and is not draggable anymore, but the event onCarDrop is NEVER called, so, the data is not going to the correct places. No errors in logs.

So, any idea?

The method that is never called:

public void onCarDrop(DragDropEvent ddEvent) {
Car car = ((Car) ddEvent.getData());


here is where is invoked:

<p:droppable for="selectedCars" tolerance="touch" activeStyleClass="ui-state-highlight" datasource="availableCars" onDrop="handleDrop">
<p:ajax listener="#{tableBean.onCarDrop}" update="dropArea availableCars" />

Using the same .xhtml and Bean outside Liferay and works, the difference is the DragDropEvent, that is never called inside the portlet. Suggestions?
Neil Griffin
RE: Drag&Drop DataTable Primefaces with liferay
24 octobre 2013 14:30

Neil Griffin


Rang: Liferay Legend

Publications: 2511

Date d'inscription: 26 juillet 2005

Publications Récentes

Hi Hamza,

I think you may have found a PrimeFaces incompatibility with portlets. Would you consider creating an issue at the PrimeFaces Issue Tracker? Are you a PrimeFaces PRO customer?

Kind Regards,


Participate in the State of Liferay Community 2017. Help the community and even win some prizes!