On Fri, Aug 11, 2006 at 08:26:51AM +1000, Murray Collingwood wrote: > When you are using the contrib:Table you specify the columns parameter for > each column to > appear in your table. I think you understand this but you haven't mentioned > much detail. > > So, in Robert's example there are 3 columns defined. By default each column > will be > populated with data from that property as each row is processed. Is this > working for you. > You haven't mentioned but I will again assume this is working. > > Next, you want to add or replace a column with a checkbox. You then code the > <span jwcid="[EMAIL PROTECTED]">Something else</span> > to specify the replacement column value for this property (that is the > property is no longer > displayed and in it's place something else is inserted). > > Robert's example closed the table too early, however that it easily corrected > and we can > expand it to include some other parameters. Something like:
2 notes here: 1) I forgot to put the source attribute in my example, as you noticed. :) 2) The block's don't have to be enclosed within the table component. They can come before the table, or after it, or wherever. :) Robert > > <table jwcid="[EMAIL PROTECTED]:Table" columns="foo,bar,baz" > source="ognl:myCollectionOfValues" row="ognl:currRow"> > > <span jwcid="[EMAIL PROTECTED]"> > <label><input type="checkbox" jwcid="@Checkbox" > selected="ognl:currRow.baz" /> Baz</label> > </span> > > </table> > > Maybe this will work for you. > > Cheers > mc > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
