2 Replies Latest reply on Apr 7, 2009 5:05 AM by Ilya Shaikovsky

    rich:fileUpload doesn't re-render h:messages

    mazz Master

      I have a file upload component and I can't get it to re-render a messages component:

      My xhtml snippet:

      <h:messages id="pluginsmessages" ... />
      <a4j:support event="onuploadcomplete" reRender="pluginsmessages" />

      My UIBean's fileUploadListener(UploadEvent event) method is getting called and I am adding messages to the context within that fileUploadListener method.

      Any ideas what magic is needed to get a file upload component to re-render h:messages after ALL files have been uploaded? I want to tell the user, "You have uploaded N files" where N is greater than 0 (the number of files that was added/uploaded by the RF file upload component)