5 Replies Latest reply on Mar 20, 2011 7:11 AM by Jerry Koh

    rich:fileUpload, "Add" button is disabled

    Jerry Koh Newbie

      Hi all,

       

      Currently encountering one problem, realise that i using the richfaces fileupload, setting the allowFlash="true" which allow batch upload.

       

      Notice that a fileuploadComponent.swf.jsf_[1].swf will be cache to the temporary internet files which the page is upload. This causes the "Add" button to be disabled.

       

      If i delete the fileuploadComponent.swf.jsf_[1].swf and refresh the page again, the add button will be enabled and the fileuploadComponent.swf.jsf_[1].swf will be created again.

       

      Any expert can help me on this. Thanks in advance.

       

      Using

       

      richfaces 3.3.3 final

      IE8.

       

      Regards

        • 1. rich:fileUpload, "Add" button is disabled
          Mark Paluch Master

          Hi Jerry,

          do you have Flash on your IE8? It would help, to see some code from your rich:fileUpload.

           

          Best regards,

          Mark

          • 2. rich:fileUpload, "Add" button is disabled
            Jerry Koh Newbie

            Hi Mark,

             

            Thank you for your reply. I have flash installed. Version 10x+

             

            Code as follow.

             

                           <rich:fileUpload id="upload"

                                    fileUploadListener="#{fileBean.listener}"

                                    maxFilesQuantity="20"

                                    immediateUpload="false"

                                    acceptedTypes="gif" allowFlash="true"

                                    noDuplicate="true"

                                    validator="#{fileBean.validateUpload}">

                                   

                                    <a4j:support event="onerror" reRender="uploadErrorMsg"/>

                                    <a4j:support event="onuploadcomplete" action="#{fileBean.list}">

                                        <f:setPropertyActionListener target="#{fileBean.msg}" value="File Uploaded"></f:setPropertyActionListener>

                                    </a4j:support>

                                    <f:facet name="label">

                                        <h:outputText value="{_KB}KB of {KB}KB uploaded. Elapsed: {mm}:{ss}" />

                                    </f:facet>

                                </rich:fileUpload>

            • 3. Re: rich:fileUpload, "Add" button is disabled
              Jerry Koh Newbie

              Ok. The problem is with if i use the eclipse SWT to run my application, the above mentioned problem will occur but if i use the normal browser to run, it will not occur.

               

              Edited: Similar behaviour is observed if you run a firefox browser, installed IETab add on for firefox which allow switching of rendering engine to IE and the page using firefox in IE mode and the same problem will occur.

               

              Any experts can help me on this?

               

              Thanks in Advance.

              • 4. rich:fileUpload, "Add" button is disabled
                Mark Paluch Master

                Hi Jerry,

                sounds like a known problem of SWT Browser. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=284712 for further information.

                Best regards,

                Mark

                • 5. rich:fileUpload, "Add" button is disabled
                  Jerry Koh Newbie

                  Hi Mark,

                   

                  Noted. Thanks once again. Have a good day ahead.