Hello,
I am having issues deleting value-type embeddable objects from a collection in struts2.
<display:table name="parent.collection" requestURI="">
<display:column property="entry" />
<display:column property="date" sortable="true" defaultorder="ascending"/>
<display:column>
</display:table>
i am using the above display tag to iterate and print the contents of the entries collection.
Is there an appropriate way to target each row and do a selective delete? I intend to insert an additional column to each row prompting the user to delete:
<display:column>
<a href="<s:url action='Delete' var="entry" escapeAmp="false">
<s:param name="name" value="%{parent.owner.fullName}" />
</s:url> ">Remove</a>
</display:column>
Obviously, at the moment the above code does not pass much to the Delete action besides a url parameter.
My question is how to pass a real object, or a reference to it, to the action, in order to remove it from the collection and consequently from the database? Has anyone done something similar with value-type embeddable objects and collections?
Thanks to all