4 Replies Latest reply on Jan 9, 2009 2:23 PM by Ilya Shaikovsky

    no reRender after rich:fileUpload

    Jens Mueller Novice

      hi,
      i'm trying to force a reRender after a file has been uploaded with rich:fileUpload. On other places where i used this component it worked as expected but not in the following scenario:

      <rich:fileUpload id="upload" autoclear="true" maxFilesQuantity="4"
       fileUploadListener="#{Bean.uploaded}" acceptedTypes="csv,txt"
       listHeight="0" >
       <a4j:support event="onuploadcomplete" reRender="fileName" />
       <a4j:support event="ontyperejected" actionListener="#{Bean.indicateWrongFormat}" />
      </rich:fileUpload>
      <h:outputFormat value="#{msg.fileName}" styleClass="labelStyleSmall" />
      <a4j:outputPanel id="fileName" layout="block" >
       <h:outputText value="#{Bean.fileName}" rendered="#{Bean.fileAvailable}"/>
       <h:outputText value="#{msg.noFileUploaded}" styleClass="noFileUploaded"
       rendered="#{!Bean.fileAvailable}"/>
      </a4j:outputPanel>
      


      i already checked the a4j:log but couldn't find anything remarkable.
      any ideas?