(Quick Reference)

p:label

Purpose

Renders a <label> element, with the text optionally loaded from i18n if required.

Example

<p:label text="field.user.name"/>
<p:label text="field.user.name" textArgs="[user.name]"/>

This is really useful for i18n.

Attributes

NamePurpose
textThe text of the label, or an i18n code to resolve to use as the text
textArgsOptional arguments to pass when creating the i18n message text

Any other attributes specified are passed through to the output.