I need to view only some list of extensions in the dialo开发者_Python百科g not even choosing them as a possible variant of file. Using p:FileUpload.
Per the Primefaces Development Guide 2.2,
allowTypes - Semi colon separated list of file extensions to accept.
The following is an attribute of the fileUpload component tag.
精彩评论