<tc:menubar>, <tc:menu>, <tc:menuCommand> and <tc:menuSeparator> are deprecated.
<tc:menubar>
<tc:menu>
<tc:menuCommand>
<tc:menuSeparator>
Use the bar facet in a content box with a <tc:buttons> tag instead. For a dropdownmenus have a look at the 'Dropdown' section on the Link & Button page. To add a separator just use <tc:separator/>.
bar
<tc:buttons>
<tc:separator/>
<tc:box label="Content Box"> <f:facet name="bar"> <tc:buttons> <tc:button label="One" omit="true"/> <tc:button label="Two" omit="true"/> <tc:button label="Three" omit="true"> <tc:command label="Four"/> <tc:command label="Five"/> <tc:separator/> <tc:command label="Six"/> ...
Content
<?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 template="/main.xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:tc="http://myfaces.apache.org/tobago/component" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"> <ui:param name="title" value="#{demoBundle.menubar}"/> <p><code class="language-markup"><tc:menubar></code>, <code class="language-markup"><tc:menu></code>, <code class="language-markup"><tc:menuCommand></code> and <code class="language-markup"><tc:menuSeparator></code> are deprecated.</p> <p>Use the <code>bar</code> facet in a content box with a <code class="language-markup"><tc:buttons></code> tag instead. <br/> For a dropdownmenus have a look at the 'Dropdown' section on the <tc:link label="#{demoBundle.button_link}" outcome="/content/20-component/040-command/00-button+link/button+link.xhtml"/> page. <br/> To add a separator just use <code class="language-markup"><tc:separator/></code>.</p> <tc:section label="Replacement"> <pre><code class="language-markup"><tc:box label="Content Box"> <f:facet name="bar"> <tc:buttons> <tc:button label="One" omit="true"/> <tc:button label="Two" omit="true"/> <tc:button label="Three" omit="true"> <tc:command label="Four"/> <tc:command label="Five"/> <tc:separator/> <tc:command label="Six"/> ...</code></pre> <tc:box label="Content Box"> <f:facet name="bar"> <tc:buttons> <tc:button label="One" omit="true"/> <tc:button label="Two" omit="true"/> <tc:button label="Three" omit="true"> <tc:link label="Four"/> <tc:link label="Five"/> <tc:separator/> <tc:link label="Six"/> </tc:button> </tc:buttons> </f:facet> <p>Content</p> </tc:box> </tc:section> </ui:composition>