[richfaces-issues] [JBoss JIRA] Created: (RF-10635) rich:fileUpload submitForm() function affects main window

kevin 2 (JIRA) jira-events at lists.jboss.org
Mon Feb 28 07:12:05 EST 2011


rich:fileUpload submitForm() function affects main window
---------------------------------------------------------

                 Key: RF-10635
                 URL: https://issues.jboss.org/browse/RF-10635
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: kevin 2


When using submitForm() on a button to upload a file the window URL is changed so when uploading a too large file the result is a blank page. 
Therefore, when refreshing the page, the form is submitted again.

Here is the code used for the button which is in the same form than the rich:fileUpload component:
{code:xml} 
<a4j:commandButton  id="uploadFormButton"
                    value="Validate"
                    onclick="#{rich:component('fileUploadId')}.submitForm();"/>
{code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list