Forums de discussion

Drag&Drop DataTable Primefaces with liferay

thumbnail
hamza jemai, modifié il y a 10 années.

Drag&Drop DataTable Primefaces with liferay

Junior Member Publications: 40 Date d'inscription: 04/12/12 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 " http://www.primefaces.org/showcase/ui/dndTable.jsf ". 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());

droppedCars.add(car);
carsSmall.remove(car);
}


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" />
</p:droppable>


Using the same .xhtml and Bean outside Liferay and works, the difference is the DragDropEvent, that is never called inside the portlet. Suggestions?
thumbnail
Neil Griffin, modifié il y a 10 années.

RE: Drag&Drop DataTable Primefaces with liferay

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 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,

Neil