I've got a page that generates a grid of TextFields with For
components. The fields are populated by nested iterators from the
model.

How do I retrieve the values of the TextFields in my onSolve() listener method?

via IReqestCycle.getParameter()?
The problem here is the fields are named programmatically, e.g.
TextField, TextField_0, TextField_1.... The field name will change if
the form structure is modified.

-= Mat

<form jwcid="@Form">
<table>
        <tr jwcid="@For"
                element="tr"
                source="ognl:model.iterator"
                value="ognl:currentRowIterator">
                
                <td jwcid="@For"
                        element="td"
                        source="ognl:currentRowIterator"
                        value="ognl:currentValue">
                        
                        <input jwcid="@TextField"
                                value="ognl:currentValue"
                                translator="translator:sudokoValue"
                                type="text"
                                size="1"
                                maxlength="1" />
                </td>
        </tr>
</table>
<p><input jwcid="@Submit"
                type="submit"
                value="Solve"
                listener="listener:onSolve" />
</p>
</form>

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

Reply via email to