0
<p:fileUpload fileUploadListener="#{expeditionGroupView.handleFileUpload}" mode="advanced" dragDropSupport="true"
                      update="upload-messages" sizeLimit="10000000" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" 
                      cancelLabel="#{lbl['label.cancel']}" uploadLabel="#{lbl['label.send']}" label="#{lbl['label.choose.file']}"
                      invalidFileMessage="#{msg['error.invalid.file.type']}" required="true"/>

I am trying to use required="true" to validate my p:FileUpload, why it does not work?

Kukeltje
  • 12,223
  • 4
  • 24
  • 47
  • I don't see a hibernate validator... Please read [ask], [mcve] and http://www.stackoverflow.com/tags/jsf/info – Kukeltje Feb 24 '16 at 15:42
  • No validator is supposed to work with ``. You need to perform validation yourself manually in a managed bean. Several questions like [this](http://stackoverflow.com/q/19925708/1391249) are in pending. – Tiny Feb 24 '16 at 17:14

0 Answers0