如何在oracle webcenter门户中列出所选节点的子节点

时间:2014-05-07 19:29:48

标签: oracle uinavigationcontroller navigation webcenter webcenter-sites

我需要在我的oracle webcenter门户项目中添加一个额外的导航。此附加导航应显示导航栏中所选节点的子项。此外,此附加导航应位于左侧边栏中。我怎么能这样做?

1 个答案:

答案 0 :(得分:0)

     <af:panelGroupLayout layout="vertical">

 <c:forEach var="node" varStatus="vs" items="#{navigationContext.currentModel.listModel['startNode=/, includeStartNode=false']}">
        <c:if test="${node.selected}">
            <c:set value="${node.children}" var="childNodes" scope="session"/>
        </c:if>               
</c:forEach>

<c:if test="${childNodes ne null}">
    <c:set var="childNodes" value="${navigationContext.currentModel.currentSelection.parent.children}"/>
</c:if>
<c:forEach items="#{childNodes}" var="node2">
                <af:commandImageLink id="cil3" text="#{node2.title}"
                                     actionListener="#{navigationContext.processAction}"
                                     action="pprnav"
                                     icon="#{node2.attributes[pageFlowScope.tnBean.iconKey]}"
                                     disabled="#{not node2.navigable}"
                                     inlineStyle="#{node2.onSelectedPath ? 'font-weight:bold;' : ''}">
                  <f:attribute name="node" value="#{node2}"/>
                </af:commandImageLink>
</c:forEach>

</af:panelGroupLayout>