Configuring and using the Client Side Validation framework
The PrimeFaces CSV feature is disabled by default. To enable the Client-side Validation framework, we need to configure <context-param> in the web.xml file as follows:
<context-param>
<param-name>primefaces.CLIENT_SIDE_VALIDATION</param-name>
<param-value>true</param-value>
</context-param>We can trigger client-side validations by setting the validateClient attribute to true on command components such as <p:commandButton> or <p:commandLink>.