Hi all, I have spent some time poking around the table code and this forum. I have seen several people ask how to override the table column header renderer (to get rid of the wrapping table tags or whatever reasons), but I have not seen a response from people in "know" about how to really do this correctly. So forgive this very basic question: what is the "blessed" way to override the table column header renderer? Assume that simple css manipulation cannot format the header the way I want (see email below, I need to render a form component as a column header).
Thanks in advance, D DeFrance -----Original Message----- From: Daun DeFrance [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 9:18 AM To: Tapestry users Subject: Checkbox as Column Header Hi all, I have a use case where we want a table of data where the first column is checkboxes. The idea is that a user would check the row of data and then click a button to perform some action. See my previous email re: For loop of Button Components. Anyway, the design is to have the column header for the check box column be a checkbox itself which would perform a "Select All" action. This is a pretty common use case so I was hoping someone, much smarter than I, has already implemented such a thing with a customization of the contrib:Table component. Any ideas or pointers? FWIW, I had no problem adding the checkbox to each row in the table, now I am stuck trying to add the "Select All" checkbox as the column header. My current thought is to construct the array of ITableComponents, with the first column denoted a special renderer, with setColumnRendererSource. The problem then becomes (as I see it), each java representation of a page needs to define its columns instead of using the .page object since the data presented in the table varies by page. Thanks in advance, D DeFrance --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
