Drag And Drop not working. Help

UI Components for JSF
Post Reply
Skyfire
Posts: 16
Joined: 06 Jan 2011, 14:33

08 Jul 2011, 14:07

Hello. I copied the example from the primefaces showcase, and the droppable part is not working.
When i drag the cross, in your website the dropable area gains focus, in mine nothing happens, so when i drop the content there the cross returns to the main table.
Is there something missing? Help please.

Using mojarra 2.0.4/2.1.2 and Primefaces 3.0 M1/M2.

skyweb
Posts: 11
Joined: 07 Jun 2011, 15:59

02 Aug 2011, 19:49

hey skyfire i'm having exactly the same problem, hopefuly you solved the problem if yes please tell me how you did, and what was the proleme.
best regards
primefaces-3.0.M1/Netbeans 7/Apach Tomcat 7.0.11

User avatar
mtranchant
Posts: 20
Joined: 04 Apr 2012, 12:59
Location: France
Contact:

05 Apr 2012, 10:16

Hi guys,

Old post, but I had the same issue until I added the small JS needed somewhere in the JSF :

Code: Select all

<script type="text/javascript">
function handleDrop(event, ui) {
      var droppedCar = ui.draggable;
      droppedCar.fadeOut('fast');
}
</script>
It is not well explained in the showcase, but the PDF is more explicit.

Regards
JBossAS 7.1.1.Final - Mojarra 2.1.7 (Mojarra 2.1.7-jbossorg-1 (20120227-1401)) - PrimeFaces 3.3.1 (with theme bluesky 1.0.6) - PrimeFaces Extension 0.5.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 61 guests