blob: fe485ea1bffad0e29829f9bdf88b1496a024340a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:tr="http://myfaces.apache.org/trinidad">
The navigationPane component creates a series of navigation items representing one level
in a navigation hierarchy. These items may either be added as children or a menu model may be bound to the
navigationPane component. If a menu model is bound, of class org.apache.myfaces.trinidad.model.XMLMenuModel or
org.apache.myfaces.trinidad.model.MenuModel, a level along the focus path, or the next level down, will be
rendered. A node that is on the focus path will be rendered as &quot;selected&quot;
<tr:spacer height="12px"/>
<tr:outputText value="The &quot;level&quot; attribute is temporary. It is used to indicate the level along the
focusPath to render. It will likely be replaced with an el expression in a future release."/>
<tr:spacer height="12px"/>
<tr:outputText value="XMLMenuModel extends TreeModel, but it also knows how to go from the current viewId to the
focus path. Notice that the xmlMenuModel has no special knowledge of page navigation and places no requirements
on the nodes that go into the tree. The nodes in the tree are stamped out with the 'nodeStamp' facet, which
should contain a commandNavigationItem component, which allows the default actionListener mechanism to be used
for page navigation. "/>
</ui:composition>