If you look at the markup in DataTable.html, you see from 

<tbody>
        <tr wicket:id="rows">
                <td wicket:id="cells">
                        <span wicket:id="cell">[cell]</span>
                </td>
        </tr>
</tbody>

that the markup for cells is a <span> tag. A link cannot work with this markup, 
so you can either:

a) populate the cell with a panel containing the link (panel can use the <span> 
tag)
b) make your own data table subclass which has a link in every cell.

Since you probably want to not only show links, you'll have to go with a)

Thomas

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Dienstag, 15. Januar 2008 07:56
> To: [email protected]
> Subject: difference between ListView and DefaultDataTable
> 
> Hello:
> 
> When I use ListView with each row having an "Edit" link I use 
> new Link() { callback handler), which is very handy.
> How to do the same in DefaultDataTable?
> I tried to use
>  new AbstractDataColumn {
>     populateItem{
>         item.add(new Link(..) { callback}
> 
> but it would not work.  From what I read, a panel has to be 
> used, Can it be done?  
> 
> Thanks
> 

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

Reply via email to