OutputLabel: Don't show required indicator, if input component is disabled
See original GitHub issueDescription
Currently the required indicator of p:outputLabel is always visible (in auto-mode) if the referenced input component is disabled. Currently I have to manually either set the required=false based on disabled or indicateRequired from auto to false based on the disabled-state.
(disabled could be replaced with readonly which has the same effect)
Describe the solution you would like
Either always check the disabled attribute of the input or introduce a new attribute that optionally activates this check (to keep it backwards compatible). Maybe a new option for indicateRequired would be suffice - e.g. auto-enhanced.
But then a global config option would be nice to let auto include the new check.
Additionally a new attribute syncRequiredIndictor=true|false would be nice, that automatically updates the p:outputLabel if the referenced input component is updated. I don’t know if this is possible at all without a huge overhead or a lot of new code.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)

Top Related StackOverflow Question
I would call it autoSkipDisabled and also check readonly there?
I just wanted to implement that and luckily saw, that it is already done. Thanks melloware!