I have the following t:grid defined in the file "AccountLog.tml":
<t:form t:id="recordFormId"> . . . <t:grid t:pagerPosition="top" t:rowsPerPage="10" t:inPlace="true" t:source="logs" t:row="log" t:reorder="createdOn, message" t:include="createdOn, message, messageType, recordState, stateDescription, updatedOn, actionCheckbox"> <t:parameter name="createdOnCell">${createdOn}</t:parameter> <t:parameter name="stateDescriptionCell">${stateDescription}</t:parameter> <t:parameter name="updatedOnCell">${updatedOn}</t:parameter> <t:parameter name="actionCheckboxHeader">Action</t:parameter> <t:parameter name="actionCheckboxCell"> <t:if test="log.pending"> <center> <t:checkbox t:value="log.actionCheckbox"/> </center> </t:if> </t:parameter> </t:grid> . . . </t:form> As you can see, the grid is seven columns. The first six come from the objects in property "logs". The seventh is an optional checkbox whose presence is controlled by a Boolean value in the log objects. As far as I can tell, everything about this page is now working except for one thing: If any of the checkboxes is visible on the page and you click one of the column headers, you get the following message with a red border across the top of the page: Ajax failure: Status 500 for /tux/admin/management/accountlog.grid.columns:sort/message/grid: Render queue error in SetupRender[admin/management/AccountLog:checkbox]: The Checkbox component must be enclosed by a Form component. This file has only one checkbox and only one form. Of course, the first thing I looked for was to see whether the checkbox is between the "t:form" tag and its end-tag. It is. Maybe I don't understand the term "enclosed by". If no checkboxes are present, the error does not occur and you can sort by clicking a column header. Any help in getting rid of this error condition will be appreciated. --Lindsay -- View this message in context: http://www.nabble.com/%22component-must-be-enclosed-by-a-Form-component%22-error-tp25902660p25902660.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org