Josh, You could do something "similar" to the following example:
columns.add(new PropertyColumn<Broker>(new ResourceModel("code"), "codigo", "codigo") { private static final long serialVersionUID = 1L; @Override public void populateItem(Item<ICellPopulator<Broker>> item, String componentId, IModel<Broker> rowModel) { item.add(new EditBrokerLinkPanel(componentId, rowModel.getObject(), Step9.class)); } }); where public class EditBrokerLinkPanel extends Panel { private static final long serialVersionUID = 1L; private String codigo; /** * @param id */ public EditBrokerLinkPanel(String id, Broker broker, final Class<? extends WebPage> searchPage) { super(id); this.codigo = broker.getCodigo(); Link<String> link = new Link<String>("link", new Model<String>(this.codigo)) { private static final long serialVersionUID = 1L; @Override public void onClick() { setResponsePage(new EditBrokerPage(getModelObject(), searchPage)); } }; add(link); link.add(new Label("text", codigo)); } } and EditBrokerLinkPanel.html <html xmlns:wicket="org.apache.wicket"> <body> <wicket:panel> <a wicket:id="link" title="Editar"> <span wicket:id="text"></span> </a> </wicket:panel> </body> </html> Of course, you this is just an example to illustrate how you could do it and you will have to roll out your own classes... Regards, Ernesto On Fri, Aug 13, 2010 at 12:05 PM, Josh Kamau <joshnet2...@gmail.com> wrote: > 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 >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org