【发布时间】:2018-03-05 22:50:03
【问题描述】:
我有一个从控制器获取 TreeNode 的 html 页面。
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<ui:composition>
<pa:panelTree styleClass="corps-grade-list"
treeContent="#{affectationController.getDossierEnBrefAffectations()}"
rendered="#{agentModele.estMigre}" />
</ui:composition>
</html>
这样,affectationController.getDossierEnBrefAffectations() 是一个返回此树节点的函数。我想得到这棵树的根节点。
我尝试使用 treeContent="${affectationControleur.consulterDossierEnBrefAffectations.children[0]}",因为 TreeNode 类具有函数 getChildren。但是它不是 EL 的正确语法。
【问题讨论】:
标签: primefaces tree