是否有记录完整JSF树的过程?
我需要查看和分析树。
答案 0 :(得分:0)
public static boolean debugTree = false;
public static final void logTree(UIComponent cpn, int deep) {
if (!debugTree)
return;
System.out.println(Strings.repeat(" ", 5*deep)+
cpn.getClass().getSimpleName()+" : "+cpn.getId());
for (UIComponent child :cpn.getChildren())
logTree(child, deep+1);
}