Error message in the popoup should be read automatically, when different document type is selected for upload. But screenreader wasn't able to read the error message.
Code snippet: jsff:
<af:panelGroupLayout id="pgl8" layout="horizontal">
<af:panelGroupLayout id="pgl12" layout="vertical" styleClass="uploadBdyTxt documentNamereq" >
<af:outputFormatted value='<span class="red">*</span> Document Name' id="of5"/>
</af:panelGroupLayout>
<af:spacer width="51" height="15" id="s9"/>
<af:inputFile id="if1" styleClass="documentName" autoSubmit="true"
binding="#{backingBeanScope.clauseRegistryBackingBean.inputFileBinding}"
valueChangeListener="#{pageFlowScope.clauseRegistryBean.fileUploadVCListner}"
partialTriggers="b3"/>
</af:panelGroupLayout>
bean class:
else if("containsMetaChar".equalsIgnoreCase(validationStatus)){
FacesContext.getCurrentInstance().addMessage(inputFileComponent.getClientId(FacesContext.getCurrentInstance()),
new FacesMessage(FacesMessage.SEVERITY_ERROR,
"Files with names containing the following characters may not be uploaded:\n",
"; % $ ! @ # ^ & ( ) ' "));
In the error popup, message is coming from the bean. Can u plz suggest how it can be read by screen reader
