Allow option to not process an inner nested form when outer form is submitted.
------------------------------------------------------------------------------

                 Key: WICKET-1852
                 URL: https://issues.apache.org/jira/browse/WICKET-1852
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.4-M3
            Reporter: Patrick Angeles


Especially useful for forms inside a table.

Sample markup:

<form wicket:id="outerForm">
<table>
  <tr wicket:id="repeater">
    <td><input wicket:id="field1" type="text"/></td>
    <td><input wicket:id="field2" type="text"/></td>
    <td><input wicket:id="field3" type="text"/></td>
  </tr>
  <tr>
     <td colspan="3"><button type="submit">UPDATE</button></td>
  </tr>
  <tr>
    <td colspan="3">
        <form wicket:id="innerForm">
           <input wicket:id="newField1" type="text"/>
           <button type="submit">ADD</button>
        </form>
    </td>
  </tr>
</table>
</form>

Possibly, add a boolean processIfNested() method to Form, which can be 
overridden to return 'false'.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to