We are currently working on latest bits of the maintenance work before PrimeFaces 3.3.RC1 release so focused on bug fixes instead of new features but there is one feature we couldn’t resist to add called PrimeFaces OutputLabel. It extends standard outputLabel with various features. The sources of the feedback for this component are our own ideas plus pe:requiredLabel component that belongs to PrimeFaces Extensions project.
- OutputLabel sets its value as the label of the target component to be displayed in validation errors so that target component does not need to define label attribute again.
- Support for components with non-trivial markup like spinner, autocomplete, calendar and so on which are not supported by standard outputLabel.
- Theme aware error styling when associated component is not valid.
- Required field indicator to display if target input component is required.
See this new component in action at PrimeFaces Labs.

Glad to see this in PrimeFaces! Wide used component which should not be missed in PrimeFaces.
Completely agree. I had to build a composite component to handle this. Now I will shift to this component.
Thanks, nice feature! it saves some lines of code and the tedious (*) required mark!
This feature is available at the Peter Hendriks online builder?
Thans a lot again!
Thank you for the addition ant it would be nice if focus is set on first invalid component after the validation I am not sure if is that intelligent.
Focus component does that.
Nice component, but I have a small enhancement request for it which I also missed in default jsf, which is implemented in default html.
Request: Nest input element inside outputlabel, so that no for attribute is necessary, like it is supported in basic html.
Hello,
Nice addition.
I am eager to replace our outputLabel JSF2 composite component by this one
Here are 2 ideas for enhancement:
* possibility (through css) to right align the label text. Apparently this is more ergonomic.
* possibility to globally customize the ‘*’. Could be for example replaced by “(required)” text.
Thanks
Nicolas.
Nice work!
Great.
Thank you.