How do i exchange components in drag drop ?

UI Components for JSF
Post Reply
salman4u
Posts: 78
Joined: 24 Jan 2010, 10:28

01 Mar 2010, 08:17

Hello,
I am just playing with drag drop component and wanted to know how do i exchange the components in outputpanel ?
Say suppose there are two outputpanel and both are droppable and each contains one image which is draggable. Now i want that when the 2nd image is dropped on 1st outpanel, the image in 1st outputpanel should go to 2nd outputpanel and 2nd outputpanel's image should come to 1st one. This is should be dynamic means not only for 2 outputpanels but there are may be n outputpanels and then for example if i drag 3rd to 7th then both should get exchanged. How can i do that?
I saw DragDropEvent but it doesn't contain enough information to accomplish this task. Please help me geeks!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

03 Mar 2010, 12:53

We will add exchange feature in upcoming version. See;

http://code.google.com/p/primefaces/iss ... ail?id=566

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 57 guests