struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mansour <mansou...@yahoo.com>
Subject Submitting a form with ajax submit inside the form
Date Sun, 24 Jun 2007 03:54:27 GMT
 From the documentation 
http://struts.apache.org/2.0.8/docs/ajax-tags.html#AjaxTags-submitTag

If the submit button is used inside a form (href is not required on this 
case), the form will be submitted asynchronously:

This is note true. It can never submit from inside a form. This will 
never anything. It will never make any thing. I am using 2.0.6

<s:iterator value="taskList" status="stat" id="row">

<s:form action="updateTask" id="form_${id}">
    <s:if test="#stat.odd == true">
        <tr class="odd">
    </s:if>
    <s:else>
        <tr class="even">
    </s:else>

    <div id="DIV_${id}">
    <td>
        <s:textfield value="${id}" name="task.id" />
    </td>

    <td>
        <s:submit theme="ajax"  />
    </td>
   
    </div>
    </tr>
</s:form>
 </s:iterator>






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message