-
1. Re: RF4: rich:tree does not work
ilya_shaikovsky May 4, 2011 10:34 AM (in response to vrelits)you should pass not just filesystemnode object but actuall roots collection.. look to sources from 3.3.x (almost the same for the 4 used)
package org.richfaces.treemodeladaptor;
public class FileSystemBean {
private static String SRC_PATH = "/WEB-INF/src";
private FileSystemNode[] srcRoots;
public synchronized FileSystemNode[] getSourceRoots() {
if (srcRoots == null) {
srcRoots = new FileSystemNode(SRC_PATH).getNodes();
}
return srcRoots;
}
}
and
<rich:treeModelRecursiveAdaptor roots="#{FSN.roots}" nodes="#{item.directories}">
-
2. RF4: rich:tree does not work
vrelits May 4, 2011 12:09 PM (in response to ilya_shaikovsky)Hi Ilya!
Thanks. That was the cause. Not sure how I could miss that small detail.
-
3. Re: RF4: rich:tree does not work
kiler May 26, 2011 4:11 PM (in response to vrelits)Hi,
I am newby in JAVA and richfaces and I have the same problem, because in the class (in example) there is no method "getNodes".
Could You send me code example or explain how it make work ?
Thanks a lot !
Kiler