// Lo que se cambio para el Primefaces3.2 private void createClassificationTree() { try { Classification raiz = classificationFacade.findRootByClient(getClient()); classificationList = classificationFacade.getEagerClassificationListByClient(getClient()); root = new DefaultTreeNode("root", null); TreeNode arbol = createTree(getRootFromClassificationList(raiz), getClassificationList()); arbol.setExpanded(true); arbol.setParent(root); // root.getChildren().add(arbol); classificationList = null; } catch (GenericFacadeException ex) { Logger.getLogger(CrudUserphoneBean.class.getName()).log(Level.SEVERE, null, ex); } }
public List<Classification> getClassificationList() { if (classificationList == null) { classificationList = classificationFacade.findAll(); } return classificationList; }