after using ajax in a not so nice way (with getting full html as a
result... ) i'm trying to follow this example:
http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html
if have made the following:
but it works fine (it deletes) but not without refreshing the page.
any help???
<%@ include file="/common/taglibs.jsp"%>
<head>
<title><fmt:message key="candidateProfileDetail.title"/></title>
<meta name="heading" content="<fmt:message
key='candidateProfileDetail.heading'/>"/>
</head>
<script>
now = new Date();
document.write("test test"+ now.getSeconds());
</script>
<p>Persons</p>
<s:if test="persons.size > 0">
<table>
<s:iterator value="persons">
<tr id="row_<s:property value="id"/>">
<td>
<s:property value="firstName" />
</td>
<td>
<s:property value="lastName" />
</td>
<td>
<s:url id="removeUrl" action="ajax">
<s:param name="id" value="id" />
<s:param name="method:remove" value="true" />
</s:url>
<s:a href="%{removeUrl}" theme="ajax"
targets="persons">Remove</s:a>
<s:a href="%{removeUrl}">Remove 2</s:a>
<s:a id="a_%{id}" theme="ajax"
notifyTopics="/edit">Edit</s:a>
</td>
</tr>
</s:iterator>
</table>
</s:if>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]