1 Reply Latest reply on Mar 28, 2008 4:52 PM by rhinox

    rich:fileUpload ignores parent Form request parameters

    rhinox

      Consider the following code:

      <h:form enctype="multipart/form-data">
       <f:param name="param1" value="value1"/>
       <f:param name="param2" value="value2"/>
      
       <rich:fileUpload immediateUpload="true" ... />
      </h:form>
      


      The fileUpload component ignores the request parameter param1 and param2 when form is submitted by the Upload button of the component or by the immediateUpload property, this is critical for applications driven by request parameters.

      I'm using:
      RichFaces 3.2.0 CR6

      PLEASE HELP!
      Thanks!


        • 1. Re: rich:fileUpload ignores parent Form request parameters
          rhinox

          I've found where the problem is. I've try the following:

          <h:form enctype="multipart/form-data">
           <rich:fileUpload immediateUpload="true" ... >
           <f:param name="param1" value="value1"/>
           <f:param name="param2" value="value2"/>
           </rich:fileUpload>
          </h:form>


          The generated Javascript code for FileUpload does consider the request parameter values but the generated Javascript code for the ProgressBar of the FileUpload is ignoring the parameters when polling for progress status.

          Is there a workaround for this? Could you fix this for the 3.2.0 release?

          PLEASE HELP.
          Thanks!