The output components display data in different ways.
<tc:out label="Output" value="Some Text"/>
<tc:label value="Some Text"/>
<tc:badge value="Badge"/>
<tc:messages/>
<tc:image value="image/tobago_head.png"/>
<tc:progress value="2" max="3"/>
<tc:object src="https://www.openstreetmap.org/..."/>
<?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"> <ui:param name="title" value="#{demoBundle.output}"/> <ui:param name="hideGlobalMessages" value="true"/> <p>The output components display data in different ways.</p> <tc:section label="#{demoBundle.output}"> <pre><code class="language-markup"><tc:out label="Output" value="Some Text"/></code></pre> <tc:out id="o1" label="Output" value="Some Text"/> </tc:section> <tc:section label="#{demoBundle.label}"> <pre><code class="language-markup"><tc:label value="Some Text"/></code></pre> <tc:label value="Some Text"/> </tc:section> <tc:section label="#{demoBundle.badge}"> <pre><code class="language-markup"><tc:badge value="Badge"/></code></pre> <tc:badge value="Badge"/> </tc:section> <tc:section label="#{demoBundle.messages}"> <pre><code class="language-markup"><tc:messages/></code></pre> <tc:messages/> <tc:button id="b1" label="Create Info Message" action="#{messagesController.createInfoMessage}"/> </tc:section> <tc:section label="#{demoBundle.image}"> <pre><code class="language-markup"><tc:image value="image/tobago_head.png"/></code></pre> <tc:image value="/image/tobago_head.png"/> </tc:section> <tc:section label="#{demoBundle.progress}"> <pre><code class="language-markup"><tc:progress value="2" max="3"/></code></pre> <tc:progress value="2" max="3"/> </tc:section> <tc:section label="#{demoBundle.object}"> <pre><code class="language-markup"><tc:object src="https://www.openstreetmap.org/..."/></code></pre> <tc:object src="https://www.openstreetmap.org/export/embed.html?bbox=-60.75,11.15,-60.6,11.35"> <tc:style width="100%" height="50vmin"/> </tc:object> </tc:section> </ui:composition>