You can drag the Standard JavaServer Faces Component Label component
from
the Palette to the Visual Designer to create a label for another
component. A Component Label associates a label with another
component of your page, providing support for speech browsers
and enabling visual browsers to provide features like the ability
to click a text label to select a radio button or checkbox.
If all you need is simple text not directly associated with
a component, as in a title or a heading or a set of instructions,
use the Static Text component
instead.
After dragging the component to the Visual Designer, you can do a number of things with it:
ComponentLabel
and an embedded OutputText
component.
Depending on where you click this component in the Visual Designer, you get different Properties windows.
When this composite component is selected in the Visual Designer, you see it in the , and you can
see which part of the component you have selected. The componentLabel
is
the main node of the component, and the
componentLabelText
is
a subnode. You can also use the Navigator window to select
either part of the component and work with the selected
component part's properties.
id
attribute.
In the page bean, this property's value is the name of
the HtmlOutputLabel
object.componentLabelText