Dave Newton wrote:
--- Mansour <[EMAIL PROTECTED]> wrote:
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.

Same difference, I guess.

However, what does this have to do with the
validation of the HTML? isn't this a JS events that triggers a request ?

My off-hand guess would be that once the HTML being
fed to the browser is messed up then behavior becomes
undefined in a hurry, particularly since different
browsers handled the mal-formed HTML in different
ways.

d.

So what would be the solution to this ?
I modified my code and the template but still no luck. The html now (I believe is valid). Here's the code:

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


And here's the result:

<table id="rows">
                
<form namespace="/" id="form_2" name="updateTask" action="/fe/updateTask.action" method="post"

<table class="wwFormTable">
                        <tr><td>

                        <input type="text" name="task.id" value="2" 
id="form_2_task_id"/>
</td>
                        <td>
                        
<input type="submit" dojoType="struts:Bind" event="onclick" value="Submit" id="submit_2" />



                        </td></tr>
                        

<!-- javascript that is needed for tooltips -->
<script 
type="text/javascript">dojo.require("dojo.widget.Tooltip");dojo.require("dojo.fx.html");</script>

</table>


Still this is not helping at all.

</form>




____________________________________________________________________________________ No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail
---------------------------------------------------------------------
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]

Reply via email to