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

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 " 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?
Neil Griffin
RE: Drag&Drop DataTable Primefaces with liferay
24 octobre 2013 14:30
Réponse

Neil Griffin

LIFERAY STAFF

Rang: Liferay Legend

Publications: 2055

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,

Neil