0 Replies Latest reply on Feb 26, 2009 6:14 AM by Tomasz Rojek

    fileUpload clearList

    Tomasz Rojek Newbie

       

      <rich:fileUpload maxFilesQuantity="1"
       id="plik" listHeight="58px" listWidth="300px"
       addControlLabel="Dodaj plik..." clearAllControlLabel="Wyczyść wszystko"
       clearControlLabel="Wyczyść"
       stopEntryControlLabel="Stop" uploadControlLabel="Pobierz plik"
       autoclear="false"
       immediateUpload="false"
       fileUploadListener="#{licencjaBean.fileUploadListener}"
       rendered="#{licencjaBean.licencjaForm.fileEmpty}"
       immediate="true"
       uploadData="#{licencjaBean.licencjaForm.fileList}">
       <a4j:support actionListener="#{licencjaBean.licencjaForm.clearFiles}" immediate="true" event="onclear" reRender="plik" />
       </rich:fileUpload>

      After uploading file, when I click on ClearAll the file list on fileUpload component is cleraed but actionListener="#{licencjaBean.licencjaForm.clearFiles}" is not fired. When I use a4j:support with event="onuploadcomplete" it works (the listener`s code is running).
      I am using RichFaces 3.3.0 with JSF-RI and facelets1.2.
      Thanks for any help.