记录JSF树组件以进行分析
是否有记录完整JSF树的过程 我需要查看和分析这棵树记录JSF树组件以进行分析,jsf,Jsf,是否有记录完整JSF树的过程 我需要查看和分析这棵树 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().getSi
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);
}