Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536.1K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.6K Security Software
Custom Navigation Model is not being displayed

Sashank Pappu
Member Posts: 80
Hi ,
I am trying to use the Custom Navigation Model which i created for few pages to be displayed in a group . When I try to display the navigation model it is not showing anything . Below is the code:
*<af:forEach var="node" varStatus="vs"*
* items="#{navigationContext.navigationModel.listModel['modelScope=/oracle/webcenter/portalapp/navigations/modelId=projectInventoryreports.xml']}">*
*<af:commandLink id="pt_cl1" text="#{node.title}"*
*inlineStyle="font-size:small;#{node.selected ? 'font-weight:bold;' : ''}"*
*action="pprnav"*
*disabled="#{not node.navigable}"*
*actionListener="#{navigationContext.processAction}"*
*clientComponent="#{node.attributes['Target'] == '_popup' ? true : false}">*
*<!-- pass node to processAction for setting current selection and navigation -->*
*<f:attribute name="node" value="#{node}"/>*
*</af:commandLink>*
*<af:spacer id="pt_s5" width="10" height="20"/>*
*</af:forEach>*
Thank you,
Sashank P
I am trying to use the Custom Navigation Model which i created for few pages to be displayed in a group . When I try to display the navigation model it is not showing anything . Below is the code:
*<af:forEach var="node" varStatus="vs"*
* items="#{navigationContext.navigationModel.listModel['modelScope=/oracle/webcenter/portalapp/navigations/modelId=projectInventoryreports.xml']}">*
*<af:commandLink id="pt_cl1" text="#{node.title}"*
*inlineStyle="font-size:small;#{node.selected ? 'font-weight:bold;' : ''}"*
*action="pprnav"*
*disabled="#{not node.navigable}"*
*actionListener="#{navigationContext.processAction}"*
*clientComponent="#{node.attributes['Target'] == '_popup' ? true : false}">*
*<!-- pass node to processAction for setting current selection and navigation -->*
*<f:attribute name="node" value="#{node}"/>*
*</af:commandLink>*
*<af:spacer id="pt_s5" width="10" height="20"/>*
*</af:forEach>*
Thank you,
Sashank P
Answers
-
Is there a missing comma in your "items" value?
-
By default globe template given navigation driven menu is as follows:
<af:forEach var="node" varStatus="vs" items="#{navigationContext.defaultNavigationModel.listModel['startNode=/, includeStartNode=false']}"> <af:subform id="pt_sfm1"> <af:switcher id="pt_sw1" facetName="#{(empty node.attributes['Target']) || (node.attributes['Target'] == '_popup') ? 'command' : 'golink'}"> <f:facet name="command"> <af:commandLink id="pt_cl1" text="#{node.title}" inlineStyle="font-size:small;#{node.selected ? 'font-weight:bold;' : ''}" action="pprnav" disabled="#{not node.navigable}" actionListener="#{navigationContext.processAction}" clientComponent="#{node.attributes['Target'] == '_popup' ? true : false}"> <!-- pass node to processAction for setting current selection and navigation --> <f:attribute name="node" value="#{node}"/> <af:showPopupBehavior popupId="menuPopup" align="afterStart" triggerType="mouseOver"/> <c:if test="${node.attributes['Target'] == '_popup'}"> <af:clientAttribute name="modelPath" value="#{node.navigationModel.metadataId}"/> <af:clientAttribute name="selectedPrettyUrl" value="#{node.prettyUrl}"/> <af:clientAttribute name="selectedTitle" value="#{node.title}"/> <af:showPopupBehavior popupId="::rendererPopup" triggerType="action"/> </c:if> </af:commandLink> </f:facet> <f:facet name="golink"> <af:goLink id="pt_gl1" text="#{node.title}" destination="#{node.goLinkPrettyUrl}" targetFrame="#{node.attributes['Target']}" inlineStyle="font-size:small;#{node.selected ? 'font-weight:bold;' : ''}"> <af:showPopupBehavior popupId="menuPopup" align="afterStart" triggerType="mouseOver"/> </af:goLink> </f:facet> </af:switcher> <af:spacer id="pt_sp9" width="20" rendered="#{! vs.last}"/> <af:popup id="menuPopup" contentDelivery="immediate" animate="false" rendered="#{! empty node.children}"> <af:panelGroupLayout id="pt_pgl7" layout="vertical"> <af:forEach var="node2" varStatus="vs2" items="#{node.children}"> <af:spacer id="pt_sp10" height="5px"/> <af:switcher id="pt_sw2" facetName="#{(empty node2.attributes['Target']) || (node2.attributes['Target'] == '_popup') ? 'command' : 'golink'}"> <f:facet name="command"> <af:commandLink id="pt_cl2" text="#{node2.title}" inlineStyle="#{node2.selected ? 'font-weight:bold;' : ''}" action="pprnav" disabled="#{not node2.navigable}" actionListener="#{navigationContext.processAction}" clientComponent="#{node2.attributes['Target'] == '_popup' ? true : false}"> <!-- pass node to processAction for setting current selection and navigation --> <f:attribute name="node" value="#{node2}"/> <c:if test="${node2.attributes['Target'] == '_popup'}"> <af:clientAttribute name="modelPath" value="#{node2.navigationModel.metadataId}"/> <af:clientAttribute name="selectedPrettyUrl" value="#{node2.prettyUrl}"/> <af:clientAttribute name="selectedTitle" value="#{node2.title}"/> <af:showPopupBehavior popupId="::rendererPopup" triggerType="action"/> </c:if> </af:commandLink> </f:facet> <f:facet name="golink"> <af:goLink id="pt_gl2" text="#{node2.title}" destination="#{node2.goLinkPrettyUrl}" targetFrame="#{node2.attributes['Target']}" inlineStyle="font-size:small;#{node2.selected ? 'font-weight:bold;' : ''}"/> </f:facet> </af:switcher> </af:forEach> </af:panelGroupLayout> </af:popup> </af:subform> </af:forEach>
This discussion has been closed.