Exposes a navigation node launched by the most recent navigation or the one to which the NavigationContext parameter points.
The node is in most cases the same as the one exposed by the selectedNavNode and/or launchedNavNode tags, but may be different.
For example, in the absence of NavigationContext, when the user selects a folder node, the portal launches in the content area the first child node in the folder. The folder node is exposed by the selectedNavNode tag, the launched iView, or page node is exposed by the launchedNavNode tag, and the navigation links in the navigation iViews are highlighted according to the launched node.
When the NavigationContext parameter is specified, the launched node is displayed in the content area, and the navigation links in the navigation iViews are highlighted according to the context node.
Name |
Mandatory |
Description |
navNode |
No |
The name of a Java variable that holds the INavigationNode object for the node. The variable can be accessed in scriptlets in the body of the tag. |
Name |
Scope |
Description |
navNode attribute |
Tag body |
An INavigationNode object representing the launched node |
The following displays the title of the current context node:
<nav:contextNavNode navNode="myNode"> You are in: <%=myNode.getTitle(componentRequest.getLocale())%> </nav:contextNavNode>