Version 1

    This is not really an article. I'm just attaching two completely workable files that might be useful for those who are using rich:fileUpload. Richfaces file upload feature has some limitations, specially with the 'clearAll' button e.g.

     

    1. The is no distinction between clear and clearAll buttons; hard to differentiate

    2. Because of this limitation, we had to capture the number of files selected for clearing using javascript; hence introduced js funtion in           xhtml page which would call the fileuploadUtil.clearFile() method below.

              

    [These example files that I attached are used with Seam3/CDI and JSF2 based application]

              

    Source Ref. https://community.jboss.org/message/638802#638802