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:

<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


On 10 Aug 2006 at 18:55, Vinicius Carvalho wrote:

> Sorry taking so long, I was busy with my datetime component, almost
> ready, hope post it here soon :)
> 
> That did not work, could you post a more clear explanation? maybe a
> full example if its not asking much
> 
> On 8/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > <table jwcid="[EMAIL PROTECTED]:Table" columns="foo,bar,baz"
> > row="ognl:currRow"/>
> >
> > <span jwcid="[EMAIL PROTECTED]">
> >   <label><input type="checkbox" jwcid="@Checkbox"
> > selected="ognl:currRow.baz" /> Baz</label>
> > </span>
> >
> > Robert
> >
> >
> > > Hello there! I've searched the list I got very surprised on how many
> > > questions about this subject, and how many psychedelic answers.
> > > Is there an easy (hack free) way to add a checkbox to a table
> > > component? Is there a good example? Would there be a good soul to give
> > > it, maybe contribute to wiki?
> > >
> > > Best regards
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date: 9/08/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to