blob: 04a9d7f8da964db95963d7aa74d18a93439050a7 [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 template="/main.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:tc="http://myfaces.apache.org/tobago/component"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<p><code class="language-markup">&lt;tc:menubar></code>,
<code class="language-markup">&lt;tc:menu></code>,
<code class="language-markup">&lt;tc:menuCommand></code> and
<code class="language-markup">&lt;tc:menuSeparator></code> are deprecated.</p>
<p>Use the <code>bar</code> facet in a content box with a
<code class="language-markup">&lt;tc:buttons></code> tag instead.
<br/>
For a dropdownmenus have a look at the 'Dropdown' section on the
<tc:link label="Button and Link"
outcome="/content/20-component/040-command/00-button-link/Button_and_Link.xhtml"/> page.
<br/>
To add a separator just use <code class="language-markup">&lt;tc:separator/></code>.</p>
<tc:section label="Replacement">
<demo-highlight language="markup">&lt;tc:box label="Content Box">
&lt;f:facet name="bar">
&lt;tc:buttons>
&lt;tc:button label="One" omit="true"/>
&lt;tc:button label="Two" omit="true"/>
&lt;tc:button label="Three" omit="true">
&lt;tc:command label="Four"/>
&lt;tc:command label="Five"/>
&lt;tc:separator/>
&lt;tc:command label="Six"/>
...</demo-highlight>
<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>