Drag & Drop to many datatables / list? Not only one target?

UI Components for JSF
Post Reply
vished
Posts: 479
Joined: 02 Feb 2014, 17:38

14 Nov 2018, 09:21

Dear all,

There is the possibilty to drag and drop items from one datacontainer (datalist, datatable) to another.
Is there also a possibilty to drag and drop items from one to many datacontainer?
https://www.primefaces.org/showcase/ui/ ... Grid.xhtml

I would like to implement something like a tasklist:
List1: open
List2: in_progress
List3: done

Many thanks for sharing ideas.
PF 8.0

Jan Eckert
Posts: 84
Joined: 11 Sep 2014, 10:13
Location: Brussels, Belgium

14 Nov 2018, 12:03

I do not exactly understand the link you provided but having two isomorph containers to drag and drop between is in the Showcase here:

https://www.primefaces.org/showcase/ui/ ... able.xhtml
Primefaces 6.1+
Wildfly 11

vished
Posts: 479
Joined: 02 Feb 2014, 17:38

14 Nov 2018, 12:50

I would like to drag and drop items not only to one list...
How can I do this? Like a Scrum Board, Tasks Board etc....
PF 8.0

Jan Eckert
Posts: 84
Joined: 11 Sep 2014, 10:13
Location: Brussels, Belgium

15 Nov 2018, 11:18

Did you even have a look at the link I posted above? In what way is it insufficient for your usecase? In the event handling you can do whatever you want, even adding it to multiple containers ...
Primefaces 6.1+
Wildfly 11

vished
Posts: 479
Joined: 02 Feb 2014, 17:38

15 Nov 2018, 12:08

Ok, thank you but I don´t understand exactly....

Do I need many of this?

Code: Select all

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

But I would like to drag and drop item from:
table1 to table2
table1 to table3
table2 to table3

So I need three <p:droppable functions?

Thanks,
PF 8.0

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

15 Nov 2018, 22:50

Try...

vished
Posts: 479
Joined: 02 Feb 2014, 17:38

10 Sep 2019, 14:06

kukeltje wrote:
15 Nov 2018, 22:50
Try...
Not really helpful your answers :roll:
PF 8.0

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

10 Sep 2019, 15:03

PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests