Forum Stats

  • 3,838,234 Users
  • 2,262,343 Discussions
  • 7,900,548 Comments

Discussions

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

User_LUSW8
User_LUSW8 Member Posts: 23 Green Ribbon

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);

Answers

  • dvohra21
    dvohra21 Member Posts: 14,618 Gold Crown

    ADF Faces has been tested to work with JAWS, an assistive technology screen reader. Refer https://docs.oracle.com/cd/E26098_01/web.1112/e16181/af_access.htm#ADFUI436

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,580 Red Diamond

    You'll find multiple messages about this problem if you search the forum. No answer, sorry. I guess you have to file an SR with support.oracle.com.


    Timo

  • User_LUSW8
    User_LUSW8 Member Posts: 23 Green Ribbon

    But this error popup content is coming from bean class right? Its not default error


    Code snippet for Bean:

    else if(FirstName==null){     

          FacesContext context = FacesContext.getCurrentInstance();  

          FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Please enter First Name");

          context.addMessage(null, msg);

    Code snippet for jsff:

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

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,580 Red Diamond

    No, the message is the reaction of you adding a FacesMessage to the FacesContext.


    Timo

  • User_LUSW8
    User_LUSW8 Member Posts: 23 Green Ribbon

    Ok, Can u suggest what will be the solution for this?

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,580 Red Diamond

    File a service request with support.


    Timo