Dave, I am using the standard S2 tags. I have deleted the whole folder
for the templates. The submit was working fine when not embeded in form.
Now, it's ok, except for the first element. Did you try to iterate over
a list and create a form for each of them to update ?
My problem now, is the first element (ONLY) not submitting. Here's my
code again:
<table id="row">
<thead>
<tr>
<th>Task Id</th>
<th>Service Name</th>
<th>Unit Count</th>
<th>Rate/Unit</th>
<th>cost</th>
<th>Edit</th>
<th>Save</th>
</tr>
</thead>
<tbody>
<s:iterator value="taskList" status="stat" id="row">
<div id="DIV_${id}">
<s:form action="updateTask" id="form_${id}"
method="post" theme="ajax">
<s:if test="#stat.odd == true">
<tr class="odd">
</s:if>
<s:else>
<tr class="even">
</s:else>
<td><s:textfield value="${id}" name="task.id" /></td>
<td><s:submit theme="ajax" /></td>
</tr>
</s:form>
</div>
</s:iterator>
</tbody>
</table>
Dave Newton wrote:
Are you using the standard S2 tags or your modified/extended tags?
I'm currently submitting forms under both 2.0.6 and 2.0.8 Ajaxily with no issues,
using both button and normal <s:submit.../> tags, updating divs w/ the results,
seeing the logging from within my Actions, etc. My guess is it will end up being
something silly and obvious, but using code almost identical to yours (I don't know
how your Action is configured or implemented) I'm having no problems.
d.
----- Original Message ----
From: Mansour <[EMAIL PROTECTED]>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Sunday, June 24, 2007 2:06:44 PM
Subject: Re: Submitting a form with ajax submit inside the form
Dave Newton wrote:
--- Dave Newton <[EMAIL PROTECTED]> wrote:
This should cause a form ID collision, which shows a
debug msg, since you'll have multiple forms with the
same ID.
Whoops, didn't see you were iterating over tasks,
which presumably have an ID, so I assume the form IDs
are being generated properly?
d.
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
These are the debug msgs I just got:
DEBUG: DEPRECATED: dojo.style replaced by dojo.html.style -- will be
removed in version: 0.5
DEBUG: DEPRECATED: dojo.animation.AnimationEvent is slated for removal
in 0.5; use dojo.lfx.* instead. 0.5
DEBUG: DEPRECATED: dojo.animation.Animation is slated for removal in
0.5; use dojo.lfx.* instead. 0.5
DEBUG: DEPRECATED: dojo.animation.AnimationSequence is slated for
removal in 0.5; use dojo.lfx.* instead. 0.5
DEBUG: DEPRECATED: dojo.Animation.* is slated for removal in 0.5; use
dojo.lfx.* instead. 0.5
DEBUG: DEPRECATED: dojo.graphics.color.Color is now
dojo.gfx.color.Color. 0.5
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265
---------------------------------------------------------------------
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]