OK. Found the solution:
private IModel createTreeModel() {
final IModel model = new AbstractReadOnlyModel() {
private static final long serialVersionUID = 1L;
@Override
public Object getObject() {
final Profile profile = (Profile)
Still have a problem.
When I use the IModel instead of the TreeModel, in the constructor, the
nodes are not responding to the clicks.
Any ideas?
Eyal Golan
egola...@gmail.com
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74
P Save a tree. Please don't print