On Fri, Jul 24, 2009 at 2:43 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote:
> Strictly speaking, it doesn't iteract. This is done through bindings (for > form fields, tipically the prop one). > Could you post your form template? I've used a Grid editing a list of > objects without any hassle, but I've never tested it with an array nor with > a Loop. > Sure; I could easily switch it to a list as opposed to an array if that would be more likely to work. I might be able to adapt it to a grid, although it's really just the header row that's part of the form -- the other bits I set to volatile because they're really only there for display purposes: <t:form> <t:errors /> <table class="grid"> <thead> <tr> <td t:type="loop" source="matrix.columnTypes" value="columnType"> <t:select value="columnType" /> </td> </tr> </thead> <tbody> <tr t:type="loop" source="matrix" value="row" volatile="true"> <td t:type="loop" source="row" value="cell" volatile="true">${cell}</td> </tr> </tbody> </table> <a t:type="pagelink" page="admin/exercise/participant/Upload" context=" exercise.id" t:mixins="yui/Button"><t:message key="back.button">Cancel</ t:message></a> <t:submit t:id="next" t:mixins="yui/Button" value="message:next.button" /> </t:form> Bound to: @Property @SessionState(create = false) private UserUploadMatrix matrix; @SuppressWarnings("unused") @Property private String[] row; @Property @SuppressWarnings("unused") private ColumnType columnType; /** * Storage for a loop; iterating across the cells in a row. */ @SuppressWarnings("unused") @Property private String cell; - Geoffrey -- Geoffrey Wiseman http://www.geoffreywiseman.ca/