I solved the problem. I don't know why but it resolved. Never mind.
Here the old code:
<div id="tasksDIV"><s:include value="tasks.jsp" /></div>
and task.jsp contains this:
<table id="row">
<thead>
<tr>
<th>Service Name</th>
<th>Unit Count</th>
<th>cost</th>
<th>Date Completed</th>
</tr>
</thead>
<tbody>
<s:form id="tasks">
.......
</s:iterator>
</s:form>
</tbody>
</table>
For some reason this was not updating the contents of the tbody and
never dispalyed.
When I moved the form tag to surround the whole tasks page it worked
fine. SO this is the new code:
<s:form id="tasks">
<table id="row">
<thead>
.....
</s:iterator>
</tbody>
</table>
</s:form>
Musachy Barroso wrote:
Well, that's all Struts will do, insert the html in the target element
musachy
On 6/15/07, Mansour <[EMAIL PROTECTED]> wrote:
Jeff Amiel wrote:
> I assume the value of %{ajaxSubmit} is a struts action...?
> And you are sure it is actually putting NEW content in the div after
> the image is clicked on?
>
Yes, the value of %{ajaxSubmit} is an action.
<table>
<s:url id="ajaxSubmit" value="/updateTaskList.action" />
<s:submit id="save_btn"
type="image" src="/fe/pages/images/fdisk.gif"
href="%{ajaxSubmit}"
theme="ajax" notifyTopics="/updateOrSave" targets="tasksDIV"
formId="tasks" />
</table>
And yes, the html is inserted in DIV. I checked it with FF DOM
inspector.
>
>
> On 6/15/07, Mansour <[EMAIL PROTECTED]> wrote:
>> I can see expected out put coming back. And when I view the page
source
>> it's even there in the right place but not rendered on the browser!
>> On both FF and IE
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]