1 2 3 Previous Next 35 Replies Latest reply on Feb 28, 2008 12:14 PM by ronanker Go to original post
      • 30. Re: Toward rich:fileUpload . Why? and What?
        bneuman

        I recently had a file upload requirement which I would think is somewhat common and relatively easy to implement.
        When user selects a file to upload and ajax call retrieves information as to whether the file (by file name) already exists in the server repository and if so, display file info and stats (size, timestamp, description, etc...).
        The user may then update form fields where appropriate (e.g. file description) and submit (upload new file and commit updated file information).

        Pretty easy to implement... my file upload component renders a hidden input that will store the filename "onchange" of the fileinput. Then a simple nested a4j:support tag provides the ajax call to retrieve info related to the filename.

        <fu:fileUpload value="#{uploadPageBean.uploadedFile}">
         <a4j:support event="onchange" reRender="fileExistsPanel,newFilePanel" />
        </fu:fileUpload>




        • 31. Re: Toward rich:fileUpload . Why? and What?
          ronanker

          Well,
          now that 'rich:fileUpload' is on work for V.3.2.0
          What will you do exactly ?


          I'm just expecting a way to send a file in ajax (quite like gmail).

          in my page i've got an object wich i can modify it's properties and attach files.
          when I click on addFile i open a modalPanel in wich i've got the fileUpload, when i upload the file, oncomplete closes the modalPanel and rerender refreshes the list of uploaded files...

          it seems very simple but with seam, tomahawk or ADF uploaders associated with a4j:commandLink or a4j:commandButton... the file isn't transmited...


          Do i need to find an other way of doing this or can i just wait for the 3.2.0 ? (i've got a non-ajax pop-up way that can do it while waiting 3.2.0)

          • 32. Re: Toward rich:fileUpload . Why? and What?
            ilya_shaikovsky

            Using standard (tomahawk) components - you should not use ajax requests fopr upload.

            In 3.2.0 rich:fileUpload will give you possivility to perform uploads via ajax out-of-the-box.

            • 33. Re: Toward rich:fileUpload . Why? and What?
              nathandennis

              Im really glad you guys decided undertake ajaxable file uploads.

              Is there an ETA on 3.2 yet?

              • 34. Re: Toward rich:fileUpload . Why? and What?
                ilya_shaikovsky

                We plan to start QA phase in nearest time.

                • 35. Re: Toward rich:fileUpload . Why? and What?
                  ronanker

                  Will i be able to test it with the nightly build ?

                  or when do you think i'll be able to test it ?

                  1 2 3 Previous Next