Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error popup content not getting automatically read by screen reader for required input field

User_LUSW8Aug 3 2022

Hi,
I am using NVDA screen reader to read error popup content for required input field in ADF but its not getting read automatically. Please suggest something, which property we can add to get read by screen reader.
I am using Jdev version: Studio Edition Version 12.2.1.4.0

Please find my code snippet for jsff page below:
<af:panelLabelAndMessage label="#{bindings.FirstName.hints.label}*" id="plam1" styleClass="firstLabel">
<f:facet name="end">
<af:inputText value="#{bindings.FirstName.inputValue}"
label="#{bindings.FirstName.hints.label}"
simple="true"
required="#{bindings.FirstName.hints.mandatory}"
columns="#{bindings.FirstName.hints.displayWidth}"
maximumLength="#{bindings.FirstName.hints.precision}"
shortDesc="#{bindings.FirstName.hints.tooltip}" id="it1"
binding="#{backingBeanScope.clauseSearchBackingBean.firstNameBind}">
<f:validator binding="#{bindings.FirstName.validator}"/>
</af:inputText>
</f:facet>
</af:panelLabelAndMessage>

And code snippet for Bean class:
else if(FirstName==null){
FacesContext context = FacesContext.getCurrentInstance();
FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Please enter First Name");
context.addMessage(null, msg);

Comments
Post Details
Added on Aug 3 2022
6 comments
164 views