File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts2 jquerry drag and drop problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 jquerry drag and drop problem" Watch "Struts2 jquerry drag and drop problem" New topic

Struts2 jquerry drag and drop problem

Vacariu Florin

Joined: Oct 30, 2009
Posts: 1
Hello,i have a problem,i am not able to get informations from the draggable divs that i have dropped into a droppable div
I need info like id's and other parameters to be passed to an action
here is the code:
I want to creata a playlist
<sj:div draggable="true"
cssStyle="width: 350px;" cssClass="accept ui-widget-content ui-corner-all" indicator="indicator"
<img src="%{thumbnail}" width="75px;"/>
<s:property value="id_Media"/>
<s:property value="content"/>
<s:property value="id_MediaType"/>
<s:hidden value="%{id_Media}" name="playlistEditedElements.id_Media" />


<s:form action="PlaylistElementsEditor" method="POST" theme="xhtml" id="editor" name="editor">

<s:if test="pb.id_Playlist == null">
<s:hidden value="%{playlistId}" name="pb.id_Playlist"></s:hidden>
<s:hidden value="%{pb.id_Playlist}" name="pb.id_Playlist"></s:hidden>

<sj:div id="playlistelements" bindOn="editplaylist" droppableTolerance="fit"
cssClass="ui-widget-content ui-corner-all" droppable="true"
droppableOnDropTopics="ondrop" droppableOnOutTopics=""
droppableActiveClass="ui-state-hover" droppableHoverClass="ui-state-active"
cssStyle="width: 400px; height: 400px; padding: 0.5em; float: right; margin: 10px;background-color:white;">

<s:iterator value="playlistelements">




<sj:submit targets="playlist" value="Modify" name="editplaylist" onClickTopics="onsubmit" cssClass="buttonlink ui-state-default ui-corner-all"/>
I agree. Here's the link:
subject: Struts2 jquerry drag and drop problem
jQuery in Action, 3rd edition