Thank you Phil. :) Best regards,
Johnnie phil59 wrote: > > Johnnie, > > All you need to do is override PropertyColumn#populateItem() as I've done > below. > The column is still sortable. > > In my case, I add an ExternalLink to the cell that does a popup, but this > code gives you the general idea. > > Phil > > columns.add(new PropertyColumn(new Model("Title"), "title", > "title") > { > @Override > public void populateItem(Item cellItem, String componentId, > IModel model) > { > ExternalLink link = new ExternalLink(componentId, > ((ContentItem) model.getObject()).getUrl(), > ((ContentItem) model.getObject()).getTitle())); > > cellItem.add(link); > } > }); > > > On Mon, Mar 17, 2008 at 1:51 PM, Johnnie <[EMAIL PROTECTED]> wrote: > >> >> Martijn, >> >> What I need is something like the "Actions" column on the "DataTable >> Example" found at http://wicketstuff.org/wicket13/repeater/ but the >> column >> should be sortable just like the "First Name" and "Last Name" columns of >> that same example. >> >> Regards, >> >> Johnnie >> >> >> Martijn Dashorst wrote: >> > >> > create a panel that contains your links, and add that to the column. >> > >> > Martijn >> > >> > On 3/17/08, Johnnie <[EMAIL PROTECTED]> 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-tp16092890p16092890.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] >> >> >> >> >> > >> > >> > -- >> > Buy Wicket in Action: http://manning.com/dashorst >> > Apache Wicket 1.3.2 is released >> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2 >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Links-on-a-sortable-column-tp16092890p16098487.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 > > -- View this message in context: http://www.nabble.com/Links-on-a-sortable-column-tp16092890p16118343.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]