Got it :)
The root is a class member and not created in the getObject(..) each time.
The TreeModel is class member as well.
I also had to removeChildren from the root at the begining of the method.
Eyal Golan
egola...@gmail.com
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin
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
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) get
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 sa