Now I implemented it in that way: IColumn[] columns = new IColumn[] { new AbstractPropertyColumn<T>( new ColumnLocation(Alignment.MIDDLE, 8, Unit.PROPORTIONAL), null, id) {
/** * */ private static final long serialVersionUID = 1L; @SuppressWarnings("unchecked") @Override public String getNodeValue(final TreeNode node) { S object = (S) ((DefaultMutableTreeNode) node).getUserObject(); return nodeToString(object); } public Component newCell(MarkupContainer parent, String id, TreeNode node, int level) { return TreeTable.newTreeCell(parent, id, node, level, new TreeTable.IRenderNodeCallback() { private static final long serialVersionUID = 1L; public String renderNode(final TreeNode node) { return getNodeValue(node); } }, getTreeTable()); } public IRenderable newCell(TreeNode node, int level) { return null; } } }; The corresponding page displays the right amount of cells, but without any content. What I am doing wrong ? I can't get it... -----Original Message----- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Freitag, 9. Dezember 2011 09:44 To: users@wicket.apache.org Subject: Re: Problem with migrating AbstractTreeColumn to 1.5 See org.apache.wicket.extensions.markup.html.tree.table.AbstractPropertyColumn.getNodeValue(TreeNode) On Fri, Dec 9, 2011 at 9:30 AM, Weller, Thomas <thomas.wel...@capgemini.com> wrote: > I have a problem with migration AbstractTreeColumn from 1.4 to 1.5. > > This is my origin code, but AbstractTreeColumn is no longer available in > 1.5.3: > > IColumn[] columns = new IColumn[] { new AbstractTreeColumn( > new ColumnLocation(Alignment.MIDDLE, 8, Unit.PROPORTIONAL), > null) { > /** > * > */ > private static final long serialVersionUID = 1L; > > @Override > public String renderNode(TreeNode node) { > @SuppressWarnings("unchecked") > S object = (S) ((DefaultMutableTreeNode) > node).getUserObject(); > return nodeToString(object); > } > > } }; > > I hope you can help me... > > Firma: Capgemini Deutschland GmbH > Geschaeftsfuehrer: Dr. Michael Schulte (Sprecher), Sven Breipohl, Burkhard > Kehrbusch, Peter Laggner, Josef Ranner > Amtsgericht Berlin-Charlottenburg, HRB 98814 > > > > > > > This message contains information that may be privileged or confidential and > is the property of the Capgemini Group. It is > intended only for the person to whom it is addressed. If you are not the > intended recipient, you are not authorized to > read, print, retain, copy, disseminate, distribute, or use this message or > any part thereof. If you receive this message > in error, please notify the sender immediately and delete all copies of this > message. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org