I have a table that displays a collection using the iterator tag. Last column of each row has a tag that will trigger an ajax action call. The result targets a . My problem is that I would like to have the ajax response in the next column of the row that triggers the ajax call withing the table. The ajax response using the following code puts the result into the last column of the first row of the table.
The code is something like this:
<s:iterator value="orderBO.lineItemBOcollection">
<tr>
<td><s:property value="itemNumber"/></td>
<td><s:property value="itemDescription"/></td>
<td align="center"><s:property value="quantity"/></td>
<td align="center">
<s:url id="ajax" action="Orders!searchCurrentSalesPrice"></s:url>
<sx:a href="%{ajax}" targets="divtarget" >View</sx:a>
</td>
<td>
<sx:div id="divtarget"></sx:div>
</td>
</tr>
</s:iterator>
What I need is to be able to get the ajax response in the last column of the specific row that triggers the ajax call.