Primefaces required=true
attribute for input fields and calendar fields is working but the error messages are not getting displayed. I confirmed this as I am not able to go to another screen there is an issue with <p:messages>
not working on IE.
I am facing with <f:validator>
in Internet Explorer browser as I have kept a debug point on the validator I am not able to reach that debug point.
I am able to invoke the validator method with Mozilla Firefox and go to the debug point and able to display my error messages using <p:messages>
.
<h:form id="formId">
<h:inputText value="#{bean.xxx}" required="true" requiredMessage="this is required field" />
<p:calendar value="#{bean.yyy}" required="true" requiredMessage="date is required field" />
<p:commandButton action="save" update="formId" value="Save" />
</h:form>
I have also used update="formid"
for the button.