The panelFormLayout lays out input form controls, such that their labels and fields line up vertically. It supports multiple columns, and also supports a footer facet.
Usually, this component will simply contain labelled Apache Trinidad input components in its main content - these are inputText, inputFile, inputColor, inputListOfValues,
inputDate, selectBooleanCheckbox, selectBooleanRadio, selectOneChoice, selectOneListbox, selectOneRadio,
selectManyCheckbox, and selectManyListbox. These components must have their "simple" attribute set to
false, which is the default, and will cause the labels and fields inside the panelFormLayout to be aligned
When more complex field contents are needed, use a panelLabelAndMessage around the more complex contents needed; see the example below.
Other components can be added to panelFormLayout, but they will not line up with labels and fields automatically, and each will appear on its own row. You can use other panel components - like panelHorizontal - to get some level of layout within a row, but to align contents with the other labels and fields, use panelLabelAndMessage or the "footer" facet.
The panelFormLayout is an example of one of the components that has support for grouping its children components. If you place panelFormLayout child items inside of a group, separators will be drawn around the group of form items if adjacent to other form items (separators won't be drawn at the top if the group is the first item in the column or, similarly, at the bottom if the group is the last item in the column). Grouped panelFormLayout items are kept in the same column of the panelFormLayout even when the assigned rows attribute is set to a value smaller than the number of items in the group. The panelFormLayout component also supports the group component in its footer facet so you can place more than one item in the footer. You can even group footer items one additional time to get separators to appear.
<tr:panelFormLayout rows="8" labelAlignment="start">
<tr:inputText label="First name" inlineStyle="text-align: left;"/>
<tr:inputText label="Seccond name"/>
<tr:inputFile label="Your photo"/>
<tr:inputDate label="Birth date"/>
<tr:inputText label="Birth location"/>
<tr:inputColor label="Favorite color" value="#FFFFFF"/>
<tr:panelButtonBar inlineStyle="margin-left: 101px;">