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.

Password: ui-state-error, ui-state-disabled doesn't work in PF10

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
vonnaicommented, Apr 30, 2021

@sqores, @mertsincan, please, don’t forget to add this fix to 10.0.1 😉 Thank you.

1reaction
vonnaicommented, Apr 12, 2021

Yes, you are right, I have checked it now. Thanks for the quick fix and hope for it in 10.0.1 .

Read more comments on GitHub >

github_iconTop 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 >

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