Accessibility Issues, WCAG 2.1

UI Components for JSF
Post Reply
Greenhouse
Posts: 1
Joined: 13 Jan 2023, 12:02

13 Jan 2023, 12:19

Hello everyone, in the datatable on the tr tag primefaces automatically sets the role=row property, how can I make sure that the property is not set? On some input tags of type hidden, the 'autocomplete' property is set to false, is it possible to make sure that the property is not set?

Thank you

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

17 Jan 2023, 00:20

PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

17 Jan 2023, 00:24

also I believe autocomplete="off" on the hidden inputs..

Code: Select all

protected void renderHiddenInput(FacesContext context, String id, String value, boolean disabled) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        writer.startElement("input", null);
        writer.writeAttribute("id", id, null);
        writer.writeAttribute("name", id, null);
        writer.writeAttribute("type", "hidden", null);
        writer.writeAttribute("autocomplete", "off", null);
        if (disabled) {
            writer.writeAttribute("disabled", "disabled", null);
        }
        if (value != null) {
            writer.writeAttribute("value", value, null);
        }
        writer.endElement("input");
    }
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests