blob: 4467b5e1027e0599c5e3c54956967585b219b280 [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">
This component lays out a label, children, tip, and associated message. Typically, the
only child of this component will be an input element of some sort, but as many children as necessary can be
added. When using panelLabelAndMessage with a Trinidad input component, you should always set
simple=&quot;true&quot; on the input component. Non-simple Trinidad input components already effectively have
all the functionality of panelLabelAndMessage.
<tr:spacer height="12px"/>
<tr:outputText value="Note that the label and messages that are rendered only apply to the &quot;for&quot;
component so messages and labels will not be shown if there are multiple input child components. "/>
<tr:spacer height="12px"/>
<tr:outputText value="To lay out multiple panelLabelAndMessage components - or multiple non-simple Trinidad
input components - you can use the panelForm component. When panelLabelAndMessage components are placed inside
a panelForm the labels will line up. "/>
</ui:composition>