x:legend

The x:legend tag encloses the legend for a field set and may contain any combination of JSF tags (including custom JSF tags). The x:legend tag must always be nested within an x:fieldSet tag.


Inherited Attributes
Core Attributes inherited from AbstractTag

Example

<x:fieldSet>
  <x:legend>
    <x:outputLabel value="Background Color"/>
  </x:legend>
  <h:selectOneRadio value="#{Preferences.background}">
    <f:selectItem itemValue="b" itemLabel="Blue"/>
    <f:selectItem itemValue="g" itemLabel="Green"/>
    <f:selectItem itemValue="r" itemLabel="Red"/>
  </h:selectOneRadio>
</x:fieldSet>

The preceeding example produces the following field set.

Background Color
Blue
Green
Red