Dynamic nodes in Tree

2009-08-18 Thread Eyal Golan
Hello, I have a wizard that in the last step I show a tree with the selections made in the previous steps. The wizard uses static steps so actually the last step is built in advance. The problem is that the tree is not updated. For debugging purposes I have in the last step tables that show the

Re: Dynamic nodes in Tree

2009-08-18 Thread Eyal Golan
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)

Re: Dynamic nodes in Tree

2009-08-18 Thread Eyal Golan
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