Hi everybody.
I have been experiencing some problems in retrieving the Interator that represents the richTree component and I would like to know if anyone could help me.
I need to go over the whole tree in order to persist its data in a database. However, when I use the method getChildren(), which should return a Iterator, I get the following warning:
WARNING: java.lang.ClassCastException: java.util.LinkedHashMap$Entry cannot be cast to org.richfaces.model.TreeNodeImpl
Iterator it = selectedNode.getChildren(); while(it.hasNext()){ System.out.println(((TreeNodeImpl) it.next()).getData()); }