Dave Newton wrote:
Probably because the HTML being generated was invalid; isn't that why you were 
trying to customize the form tag templates?
No, not really. I was trying to customize it so that I can remove the <tr> from that are surrounding the button, and therefore I can put it on the same level or a record in a table. I mean I dont want the button to be on a new line or <tr> by its self. That's the only thing I was trying to do.

However, what does this have to do with the validation of the HTML? isn't this a JS events that triggers a request ?
On the other hand why would the other items in the list generate an event ?

Any way, I will try to modify the html template and try again.

----- Original Message ----
From: Mansour <[EMAIL PROTECTED]>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Sunday, June 24, 2007 7:37:34 PM
Subject: Re: Submitting a form with ajax submit inside the form

Yes. You did it ! You isolated the issue. It's working without any table tags. This works fine and send the request as expected:

<s:iterator value="taskList" status="stat" id="row">
            <s:form action="updateTask" id="form_${row.id}"
                method="post" theme="ajax">
            <s:textfield value="${id}" name="task.id" />
            <s:submit  id="submit_${row.id}" />
            </s:form>
        </s:iterator>


The first generated element will not work if I surround the previous code with <table> tags !
I don't understand why, at least now I know where's the problem.
Do you have any idea ?




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to