Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14257

rich:fileUpload not throwing the javascript event "onsizerejected" for global maxRequestSize

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.15
    • Fix Version/s: 4.5.16
    • Component/s: component-input
    • Labels:
      None
    • Environment:

      Richfaces 4.5.11.Final
      JSF 2.2
      Tomcat7

      Description

      I am using rich:fileUpload

      <rich:fileUpload fileUploadListener="#{bean.attachmentsListener}" 
      maxFilesQuantity="#{bean.attachmentsLeft}" style="width:100%;" 
      listHeight="54px" noDuplicate="#{true}" addLabel="#{msg['addLabel']}" 
      immediateUpload="true" doneLabel="#{msg['doneLabel']}"
      onsizerejected="alert('#{msg['fileUpload.sizeExceeded']}');">
      <a4j:ajax event="uploadcomplete" execute="@none" render="attachments" />
      </rich:fileUpload>
      

      web.xml:

      <context-param>
      		<param-name>org.richfaces.fileUpload.maxRequestSize</param-name>
      		<param-value>50000</param-value>
      </context-param>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                michuer Michal Rybarczyk
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: