aspose file tools*
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 jquerry drag and drop problem" Watch "Struts2 jquerry drag and drop problem" New topic
Author

Struts2 jquerry drag and drop problem

Vacariu Florin
Greenhorn

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
Thanks
<sj:div draggable="true"
cssStyle="width: 350px;" cssClass="accept ui-widget-content ui-corner-all" indicator="indicator"
droppableActiveClass=".accept">
<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" />
</sj:div>

</s:iterator>

</sj:div>
</td>
<td>
<br>
<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:if>
<s:else>
<s:hidden value="%{pb.id_Playlist}" name="pb.id_Playlist"></s:hidden>
</s:else>

<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"
droppableAccept=".accept"
cssStyle="width: 400px; height: 400px; padding: 0.5em; float: right; margin: 10px;background-color:white;">

<s:iterator value="playlistelements">



</sj:div>

</s:iterator>

</sj:div>

<sj:submit targets="playlist" value="Modify" name="editplaylist" onClickTopics="onsubmit" cssClass="buttonlink ui-state-default ui-corner-all"/>
 
Don't get me started about those stupid light bulbs.
 
subject: Struts2 jquerry drag and drop problem