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.