jQuery in Action, 2nd edition*
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 Murach's Java Servlets and JSP this week in the Servlets 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: http://aspose.com/file-tools
subject: Struts2 jquerry drag and drop problem
Similar Threads
Struts2 variable inside javascript
Passing arraylist as hidden variable in JSP Struts2 framework
Update Database with the newly entered value
Jsp file not compling
[Struts2] losing display only(prepopulated) values of the form if the validaiton fails