Password: ui-state-error, ui-state-disabled doesn't work in PF10
See original GitHub issueDescribe the defect As I see in PasswordRenderer.java, the styleClass attribute never contains classes ui-state-error and ui-state-disabled, because there is not any call the function createStyleClass (InputRenderer.java). Please, fix it to 10.0.1
protected void encodeMarkup(FacesContext context, Password password) throws IOException {
ResponseWriter writer = context.getResponseWriter();
String clientId = password.getClientId(context);
boolean toggleMask = password.isToggleMask();
if (toggleMask) {
writer.startElement("span", null);
boolean isRTL = ComponentUtils.isRTL(context, password);
String positionClass = getStyleClassBuilder(context)
.add(Password.STYLE_CLASS)
.add(Password.MASKED_CLASS)
.add(Password.WRAPPER_CLASS)
.add(isRTL, "ui-input-icon-left", "ui-input-icon-right")
.build();
writer.writeAttribute("class", positionClass, null);
}
String inputClass = getStyleClassBuilder(context)
.add(!toggleMask, Password.STYLE_CLASS)
// this row can be removed
.add(Password.INPUT_CLASS)
//this row should be added
.add(createStyleClass(password, Password.INPUT_CLASS))
.add(password.getStyleClass())
.build();
Environment:
- PF Version: 10.0.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
jQuery-ui: enabling disabled button doesn't restore event
Yes, previous answers may work for you, but for me the events weren't firing when I "re-enabled" the button with .removeAttr("disabled") and ...
Read more >PASSWORD RECOVERY FUNCTIONALITY IS DISABLED
Your solution doesn't work with Cisco 2911 router. Any alternate solution ? "Readonly ROMMON initialized. PASSWORD RECOVERY FUNCTIONALITY IS DISABLED. program ...
Read more >Accounts Administrator account status (Windows 10)
If the Administrator account is disabled, you can't enable it if the password doesn't meet requirements. In this case, another member of the ......
Read more >How can I eliminate password complexity requirements ...
I checked the group policy and the setting is disabled. ... something that should be done after a change if it doesn't work...
Read more >How do I disable/enable a form element?
How do I check/uncheck a checkbox input or radio button? Last Updated. November 18, 2021. Suggestions, Problems, Feedback? Open an Issue or Submit...
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 FreeTop 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
Top GitHub Comments
@sqores, @mertsincan, please, don’t forget to add this fix to 10.0.1 😉 Thank you.
Yes, you are right, I have checked it now. Thanks for the quick fix and hope for it in 10.0.1 .