0

I want to add custom attribute to existing UI components in myFaces JSF2.2 .All the examples in internet talks about using com.sun.faces.renderkit .I will not be able to use this as my application runs on websphere liberty and will be having only MyFaces .Is there any way I can achieve this with MyFaces. This is required for adding accessbility related attributes

user2462959
  • 75
  • 11
  • if this is about the `aria-*` attributes, see https://stackoverflow.com/questions/52984941/jsf-datatable-not-complying-to-wcag-due-to-unsupported-aria-label-attribute – Kukeltje Jun 09 '20 at 06:12
  • oh and if you really do want to extend all components (don't go there) the myfaces IMPLEMENTATION also has renderkit counterparts. Easy to find in the source... – Kukeltje Jun 09 '20 at 06:18
  • Also see https://stackoverflow.com/questions/40546135/putting-a-role-in-facelets-composition-shows-message-attribute-role-is-not-al – Kukeltje Jun 09 '20 at 06:19
  • Does this answer your question? [JSF datatable not complying to WCAG due to unsupported aria-label attribute](https://stackoverflow.com/questions/52984941/jsf-datatable-not-complying-to-wcag-due-to-unsupported-aria-label-attribute) – Kukeltje Jun 09 '20 at 06:20
  • oh yes thanks I jsut checked the passthrough feature of JSF2.2 and it looks promising let me dig and try – user2462959 Jun 09 '20 at 10:25
  • Please also check [here](https://stackoverflow.com/questions/19189372/javaserver-faces-2-2-and-html5-support-why-is-xhtml-still-being-used). Note the possible usage of the http://xmlns.jcp.org/jsf namespace to decorate your "native html5" components with jsf tags. – Paulo Araújo Aug 28 '20 at 20:59

0 Answers0