Why does required=“true” not fail validation when disabled=“true” is specified
问题 <a4j:outputPanel id="tapalSectionSendToPanel" ajaxsingle="true"> <h:inputText id="sendToId1" value="#{MainBean.SectionBean.sendTo}" class="createresizedTextbox" required="true" requiredMessage="#{msg.labl_required}" disabled="true" /> <h:message for="sendToId1" style="color:red" /> </a4j:outputPanel> i need to validate textbox for empty validation and should show required when i click button without entering any value in textbox. It works fine without disabled="true" . Whats the alternative