Hi,

In the following code the children(${id}) function is called when you click
on the children button. Now ajax works ok and I get the correct results
back(I'm using prototype.js). My problem is that I want to use the <s:iterator
tag in order to iterate through the returned values. Is this possible or I
can't do it because <s:iterate is used to render the page and its not
available on the ajax call?

<table>
    <tr>
    <th>Id</th>
    <th>First Name</th>
    <th>Last Name</th>
    </tr>
    <s:iterator value="persons">
    <tr id="${id}">
        <td><s:property value="id"/></td>
        <td><s:property value="firstName"/></td>
        <td><s:property value="lastName"/></td>
        <td><input type="button" onclick="children(${id})"
value="children"/></td>
    </tr>
    <s:iterator id="result" value="children">
    <tr>
        <td><s:property value="id"/></td>
        <td><s:property value="firstName"/></td>
        <td><s:property value="lastName"/></td>
    </tr>
    </s:iterator>
    </s:iterator>
</table>


Thanks
stelios

Reply via email to