CommandLink: Invalid HTML when disabled
See original GitHub issueDescribe the bug
Since Primefaces 12 (Issue: #8218 / PR: #8219) disabled CommandLinks are rendered with invalid HTML, because an attribute disabled=true is renderend. But this in not allowed on anker-tag (<a>).
Attribute disabled not allowed on element a at this point. r Post<a id=“j_idt343:disabled” href=“#” class=“ui-commandlink ui-widget ui-state-disabled” tabindex=“-1” …meFaces.ab({s:"j_idt343:disabled",f:"j_idt343"});return false;" disabled=“true”>Disab
Reproducer
See showcase
Expected behavior
Valid HTML is rendered.
PrimeFaces edition
Community
PrimeFaces version
12.0.0
Theme
No response
JSF implementation
All
JSF version
2.2
Java version
1.8
Browser(s)
No response
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
jsf 2 - h:commandLink rendered working disabled not working
I need to disable / enable the h:commandLink on another condition. The logic written for rendering the h:commandLink works correctly, but logic for...
Read more >p:commandLink and the "disabled" attribute - PrimeFaces forum
I've just noted a stragen behavior of the html produced by p:commandLink in Firefox and IE. This is my source code: Code: Select...
Read more >How to enable already disabled a4j:commandLink? - JBoss.org
Hi. Please help me in this issue. I want to enable a4j:commandLink already disabled from backing bean (toDisableSaveLink = true).
Read more >disabling commandlink - RoseIndia.Net
The commandlink.disabled attribute only disables the l. ... "commandLink" tag is used like anchor tag in html. jsf h:commandLink example.
Read more >apex - output Dynamic HTML with VisualForce component
The compile error is because outputLink does not have action attribute .You can use Command Link Instead .
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Oh its saying disabled is not allowed at all on the element. My fix makes it render as
disabled="disabled"like other components.Sorry was very busy the last days. Just did my review.