5 Replies Latest reply on Oct 23, 2008 8:05 AM by foxpvbp

    fileUpload problem

    foxpvbp

      Hi guys,
      I'm using the richfaces fileUpload component but I have a problem, when a chose one file and click in a Cancel link, after this, when I choose the same file, it don't appears in the component.

      So, someboy have a solution for this problem? I try to re-render the componnent on a 'onuploadcancel' event, bu don't work.

      Thanks and sorry for the bad english.

        • 1. Re: fileUpload problem

          Hi,

          What RF version and browser do you use? I cannot reproduce the issue on RF 3.2.2.GA.

          • 2. Re: fileUpload problem
            foxpvbp

            I'm using 3.2.2 GA in Fire Fox 3.0.
            Here is my code:

            <rich:fileUpload
             onadd="alert('asdasdas')"
             fileUploadListener="#{formulario.listenerUpload}"
             maxFilesQuantity="#{formulario.upsPossiveis}"
             binding="#{formulario.fileBind}"
             listWidth="350px"
             listHeight="70px"
             id="uploadFormulario"
             addControlLabel="Adicionar"
             clearAllControlLabel="Limpar lista"
             uploadControlLabel="Enviar"
             stopEntryControlLabel="Parar"
             allowFlash="false"
             onuploadcanceled="alert('sadasdsa')"
             reRender="panelGripFormularioUpload"
             acceptedTypes="doc, pdf, xls, odt, ppt, pps, ods, odp">
             <a4j:support event="onuploadcomplete" reRender="arqFormularios,panelGroupRight" />
             </rich:fileUpload>
            


            • 3. Re: fileUpload problem
              foxpvbp

              Sorry, I don't see my above code, so I'm post this here out of code tag.
              <rich:fileUpload
              onadd="alert('asdasdas')"
              fileUploadListener="#{formulario.listenerUpload}"
              maxFilesQuantity="#{formulario.upsPossiveis}"
              binding="#{formulario.fileBind}"
              listWidth="350px"
              listHeight="70px"
              id="uploadFormulario"
              addControlLabel="Adicionar"
              clearAllControlLabel="Limpar lista"
              uploadControlLabel="Enviar"
              stopEntryControlLabel="Parar"
              allowFlash="false"
              onuploadcanceled="alert('sadasdsa')"
              reRender="panelGripFormularioUpload"
              acceptedTypes="doc, pdf, xls, odt, ppt, pps, ods, odp">
              <a4j:support event="onuploadcomplete" reRender="arqFormularios,panelGroupRight" />
              </rich:fileUpload>

              • 4. Re: fileUpload problem
                ilya_shaikovsky

                ok.. I could see this with noDuplicate defined
                https://jira.jboss.org/jira/browse/RF-4716

                • 5. Re: fileUpload problem
                  foxpvbp

                  Yes, I see noDuplicate attribute, but don't solve my problem, so I re-build my project with richfaces 3.2.2 and the problem work, so sorry for the simple question.
                  THANK'S!!