0 Replies Latest reply on Aug 16, 2011 8:48 AM by jjorloff1

    How do you notify user of exception with the rich:fileUpload component?

    jjorloff1

      I am using RichFaces 4 and the Mojarra implementation of JSF 2.  I have a rich:fileUpload component, and it is working, in general; however, I when the user uploads an invalid file (as determined in my file upload listener), I would like to notify them of the error.  I am throwing FileUploadExceptions at the moment, but whenever an exception happens, the FileUpload component displays "Done" below the file as if everything was ok.  Is there any way I can configure the component to display something even as simple as "An error occurred while uploading the file" instead of "Done"?  I tried using the "serverErrorLabel" property, but even if I have a string set in there, nothing different appears to happen.

       

      Thanks!