Consider the typical usage of the Grid component for displaying the content of a DB table. I'm trying to find what is the best way to include Modify/Delete links to each row of the table.
Option 1: Extend the POJO representing the grid model from a common GridPOJO object that has dummy "modify" and "delete" properties. Then override the rendering for the this two fields with <t:parameter> and render the links. This would definitely work but it looks like a hack and it is simply not good design to extend your POJO class from a presentation-layer object. Option 2: Create an implementation of BeanModel that includes the two extra columns for "modify" and "delete" and pass it to the Grid. The question here is how to programmatically create the default BeanModel for my POJO (as the Grid does internally) so that I only add the 2 new properties instead of listing all the properties of the POJO? Option 2.1: Let the Grid create the default BeanModel and then implement some page event where I add the two new columns to the model. The question here is what page event would be appropriate? This also doesn't look like a good design. Option 3: Is it possible to extend GridRow to add some columns which do not represent data (and among other things would not be sortable)? Another usage example would be to add selection checkboxes to all rows. Is there some enhancement that can be done to the Grid component that would make this typical DB table presentation easier? Thank you, Bogdan Calmac. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]