question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OutputLabel: Don't show required indicator, if input component is disabled

See original GitHub issue

Description 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:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
tandraschkocommented, Jan 26, 2021

I would call it autoSkipDisabled and also check readonly there?

0reactions
fanstecommented, Aug 26, 2021

I just wanted to implement that and luckily saw, that it is already done. Thanks melloware!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't I use "required" and "disabled" at the same time in ...
According to CBroe: www.w3.org/TR/html5/forms.html#enabling-and-disabling-form-controls:-the-disabled-attribute: Constraint validation: If an element is ...
Read more >
OutputLabel - PrimeFaces Showcase
OutputLabel is an extension to standard outputLabel component. ... nullableValue}" required="true" /> <p:outputLabel for="@next" value="Label for input ...
Read more >
<af:inputText> - Oracle Help Center
Name Type Supports EL? accessKey char Yes attributeChangeListener javax.el.MethodExpression Only EL autoSubmit boolean Yes
Read more >
I want to make input text as disable when i click on checkbox?
Hi below is code for making input text as disabled when i click on input check ... <apex:outputLabel >Do not create a new...
Read more >
Lightning Aura Components Developer Guide
Input Component Labels . ... Disable Lightning Locker for a Component . ... Developer Edition org if you don't already have one.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found