Show TOC

Background documentationiterateSelectedNavNodesLevel Locate this document in the navigation structure

 

Iterates through all the sibling nodes of the node in the selected path on a specified level.

For example, if the user selects   System Administration   Permissions   SAP Authorizations  , and the tag specifies level 2, then the tag iterates through all the nodes on the same level as Permissions.

During each iteration of the tag, a different node is exposed in the body of the tag, either via a cooperating tag that accesses the current node in the iteration or the scriptlet variable defined by the currentNavNode attribute.

For more information about the selected path, see Key Terms and Concepts.

Attributes

Name

Mandatory

Description

currentNavNode

No

The name of the Java variable to create for holding the INavigationNode object for the current node in the iteration.

The variable is accessible in scriptlets in the body of the tag.

direction

No

Indicates in what direction to iterate. The attribute can have the following values:

  • forward (default): Iterate from the first to the last node

  • backward: Iterate from the last to the first node

level

Yes

The level in the navigation tree whose nodes to include in the iteration. Only the children of the selected node on the level above are included.

Variables

Name

Scope

Description

<currentNavNode> attribute

Body of tag

INavigationNode object representing the current node in the iteration.

Example

The following creates a detailed navigation iView by starting an iteration of all the sibling nodes of the node in the selected path on the strStartLevel level.

Syntax Syntax

  1. <div id="dtn">
        <nav:iterateSelectedNavNodesLevel level="<%=strStartLevel%>"
         currentNavNode="currentRoot">
            <nav:recurseNavNodeChildren currentDepth="currentDepth"
             currentNavNode="currentNavNode">
    
            ... Display DTN nodes
    
            </nav:recurseNavNodeChildren>
        </nav:iterateSelectedNavNodesLevel>
    </div>
    
End of the code.