Current Position:Home > Drag & drop solution - submit form

Drag & drop solution - submit form

Update:11-30Source: network consolidation
I'm creating some drag&drop page.
My page looks like:
<af:subform id="ListID">
<afh:script source="/drag_n_drop.js"/>
<af:table value="#{myBean.list}" var="item" >
<af:outputText value="#{}" onmousedown="initDrag()" onmouseup="doDrop()" />
<af:inputHidden value="#{myBean.dragID}"
valueChangeListener="#{myBean.drop}" id="dragID" />
Now in initDrag() I'm able to properly get ID of dragged item and put it in hidden element.
How should look my doDrop() javascript handler?
Simple submit on proper form doesn't propagate dragID to bean and valueChangeListener isn't triggered.
When I add on page simple commandButton, and push it instead of calling doDrop() function, everything works fine.
I can also reuse javascript function from onclick in such button and it works (with buttion on page). However I don't want there be any button.
What do I miss?

The Best Answer

Hi there,
As per the current design, 'Auto Submit' works only for correct answers. You can try adding the following advanced action in case if you don't want to report the Drag and Drop interaction.
1. Create a user variable called 'count' with value '0'.
2. Create a conditional action with the following statements.
Assume your total number of Drag sources is 4, and then create a conditional action with the following statements
Select the Target Object, Click on the 'Accept' button from Drag and Drop Properties Panel. (Accepted Drag Source dialog should open up)
Set 'On Drop action' as Execute Advanced action, select the advanced action created in the above step, (set it for all sources).
This action gets triggered while dropping sources and the else part gets executed on drop the last source object and movie continues to the next slide
As I mentioned before, this doesn’t actually submit the question so it won’t work with 'Reporting' scenarios.
Nimmy Sukumaran.
  • Drag & drop solution - submit form Update:11-30

    Hi I'm creating some drag&drop page. My page looks like: <af:subform id="ListID"> <afh:script source="/drag_n_drop.js"/> <af:table value="#{myBean.list}" var="item" > <af:column> <af:o

  • Drag and Drop | Text | Submit | PLEASE HELP Update:11-30

    Hi. I really need help.  THANK YOU in advance. I am building a voting contact from in flash profession with AS3. The functionality will allow users to drag and drop choices OR add their own allow them to submit their TOP 5 choices. PROBLEM: 1. Drag a

  • Solution on drag & drop Update:11-30

    My query is? Please give a solution to whether drag & drop of components is possible in JApplet. Kindly send me the solution, if possible with a code example. Thanks. other 2 answers

  • Still no EASY drag 'n drop solution adding music to slide show in iWeb Update:11-30

    I wonder if there in the year 2008 - using iWeb '08 (2.0.2) - still doesn't exist an EASY drag 'n drop solution that within iWeb let's you add iTunes Plus songs (without DRM) to a slide show!?!? I would like to add this to this little site about the

  • R6034 error Photoshop CS2 drag & drop Update:10-11

    I've had this problem for some time.  I'm on Vista-64-SP2 running Photoshop-CS2 When first installed PS-CS2 worked fine. I got no errors when starting the program and I could drag & drop icons from the desktop or windows onto the Adobe taskbar icon a

  • Drag Drop List to List Update:10-11

    I have a source list and a destination list. I want to submit the contents of the destination list via my sendformdata function along with the other formitems. Here are my source/dest lists. <mx:VBox dropShadowEnabled="true"> <mx:Label

  • Windows Storage Server 2008 - unzip with drag & drop from Windows 7 client fails Update:10-11

    Hello. As i asked this question in German and got no answer so i try it in English now. I have the following problem: We have a Windows SBS 2008, where we store our files. If somebody opens a ZIP-file on a network share from a Windows 7 Client (64 Bi

  • Drag & Drop of a file not working in Ubuntu & other linux Update:10-11

    Hi All, I am working on a project,in which it has the requirement of dragging the files from a JList present inside a JFrame to the desktop. First I tried to get a solution using dnd API but could not. Then i googled and i got an application which is

  • RE: Drag & Drop with ListView Update:10-11

    By the way, has anyone tried to drag & drop a node from a listview to a treeview? I can drag a node from the listview. But when I drop it into the treeview, how can I find out which node of the treeview that I drop into? Any help will be greatly appr

  • PSE7 with Windows 7 - Drag & Drop Problems Update:11-30

    Hello, have some people experince in PSE 7 with OS Windows 7? I have some problems with the Drag & Drop function. If I drag a picturce from the explorer into PSE7, PSE7 freeze and need two minutes to come back. Have somebody any idea / solution? -->