0

I'm improving a website to be accessibility friendly. Having problems with the p:selectOneMenu: it's not reading the values in the drop down, it only read them as a 'Blank'. I understand primefaces renders it different than a normal selectMenu just not sure how. How can i fix this to read the drop down items?

Using : Primefaces 5.1 , Reader NVDA ,Firefox v42.0 (but should work with Chrome and Internet Explorer)

<p:selectOneMenu id="title" value="#{person.title}" required="true" styleClass="select"><f:selectItem itemLabel="#{bundle['please_select']}" itemValue="" />
  <f:selectItems value="#{utilsController.getCodeList('TITL', user, localeManager.getLanguage())}" />
  <p:ajax event="change" update="gender" listener="#{memberWizardController.autopopulateGender()}" />
</p:selectOneMenu>

Drop down

Would appreciate if answer could explain how the p:selectOneMenu renders in html / DOM

Thanks in advance.

Eric Citaire
  • 4,355
  • 1
  • 29
  • 49
Tinus Jackson
  • 3,397
  • 2
  • 25
  • 58
  • If accessibility is really important, this is just the first issue you encounter in PF 5.1. Use PrimeFaces 5.3.x or latest snapshot... Soooooo many improvements in this 'aria' (pun intended). – Kukeltje Nov 30 '15 at 09:35
  • @Kukeltje Still have same problem. Upgraded to 5.3 and the document shows the same as the one from 5.1 for p:selectOneMenu – Tinus Jackson Nov 30 '15 at 12:49
  • Also checked the releasenotes of newer one and commits in github? And how it renders html can easily be seen in the source of the component – Kukeltje Nov 30 '15 at 12:55

0 Answers0