I used the "Data Table Example" on this page for sorting/pagination:
http://www.wicket-library.com/wicket-examples/repeater/
Here's code I did to make the cells in one of the columns into links:
columns.add(new PropertyColumn(new Model("Title"), "title", "title")
{
// Build the title field as a link
@Override
public void populateItem(Item cellItem, String componentId,
IModel model)
{
ExternalLink link = new ExternalLink(componentId,
((ContentItem) model.getObject()).getUrl(),
((ContentItem) model.getObject()).getTitle())
{
@Override
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
tag.put("class", "title-link");
}
};
link.setPopupSettings(SearchPage.this.popupSettings);
cellItem.add(link);
}
});
Phil
On Mon, Mar 17, 2008 at 12:07 PM, jeredm <[EMAIL PROTECTED]>
wrote:
>
> You might check out this control.
>
> http://www.inmethod.com/
>
> I have not used it outside of the demo on the website, but somebody
> suggested it to me when I was asking about sorting. I was looking for a
> drag and drop sort, so I didn't use the control. This control does have
> sortable and resizable columns.
>
>
> Johnnie wrote:
> >
> > Hi,
> >
> > On a DataTable I want to have a sortable column whose cell's are links.
> > How do how do that?
> >
> > Best regards,
> >
> > Johnnie
> >
>
> --
> View this message in context:
> http://www.nabble.com/Links-on-a-sortable-column-tp16092890p16097037.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Phil Grimm
Mobile: (858) 335-3426
Skype: philgrimm336