Thanks Jerome. What i want is to make the data in the cells clickable so
that users can use them to drill down. For example, one column displays
invoice numbers. I want the invoice number displayed to be a link so that a
user can click it to open the invoice details page. I thought i would do so
by overriding the way the cells are rendered. I am still not able to do
this.

Regards.
Josh

On Fri, Aug 13, 2010 at 12:59 PM, Bodis, Jerome <bo...@uni-mainz.de> wrote:

>
> >Somebody please help me with a sample code on how to override the
> newRowItem method of the AjaxFallbackDefaultDataTable
>
> _dbsTable = new
> AjaxFallbackDefaultDataTable<DnsDomainBuildingSubnet>("dbsTable",
> dbsColumns, dbsProvider, 20)
>                {
>                        // add a tooltip to each row
>                        @Override
>                        protected Item<DnsDomainBuildingSubnet>
> newRowItem(String id,
>                                        int index,
> IModel<DnsDomainBuildingSubnet> model) {
>
>                                Item<DnsDomainBuildingSubnet> item =
> super.newRowItem(id, index, model);
>
>                                String info = "blabla";
>
>                                item.add(new JQueryTooltipBehavior(info));
>
>                                return item;
>                         }
>                };
>
> >I would like to display some of the columns as links . is this the way to
> do it?
>
> Add a panel with your links (or whatever content you need) to an
> AbstractColumn and append this to your list of columns (List<IColumn<XX>>)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to