[richfaces-issues] [JBoss JIRA] (RF-11977) Multiple fileUpload controls on the same page do not work

Brian Leathem (JIRA) jira-events at lists.jboss.org
Mon Feb 13 13:42:01 EST 2012


     [ https://issues.jboss.org/browse/RF-11977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem updated RF-11977:
-------------------------------

    Description: 
Situation:
Two rich:fileUpload controls, in the same form.
When:
# choose first file for upload
# choose second file for upload
# click upload button for the first file
The first control disappears from the page and you cannot upload the second file (the upload event is never caught).

Could you please indicate a solution for this problem?

Thank you very much!

Part of the code used for testing is the following:

{code}
<h:form id="uploadForm">
	<rich:panel>
		<rich:panel>
			<rich:fileUpload id="uploadFile1"
				fileUploadListener="#{bean.method1}" maxFilesQuantity="1"
				immediateUpload="true" listHeight="65px"</rich:fileUpload>
		</rich:panel>

		<rich:panel>
			<rich:fileUpload id="uploadFile2"
				fileUploadListener="#{bean.method2}" maxFilesQuantity="1"
				immediateUpload="true" listHeight="65px"</rich:fileUpload>
		</rich:panel>

		<rich:panel>
			<a4j:commandButton id="addB" value="value" action="#{bean.method3}"
				render="stg" />
		</rich:panel>
	</rich:panel>
</h:form>
{code}



  was:
Situation:
Two rich:fileUpload controls, in the same form.
When:
1) choose first file for upload
2) choose second file for upload
3) click upload button for the first file
The first control disappears from the page and you cannot upload the second file (the upload event is never caught).

Could you please indicate a solution for this problem?

Thank you very much!

Part of the code used for testing is the following:

<h:form id="uploadForm">
	<rich:panel>
		<rich:panel>
			<rich:fileUpload id="uploadFile1"
				fileUploadListener="#{bean.method1}" maxFilesQuantity="1"
				immediateUpload="true" listHeight="65px"</rich:fileUpload>
		</rich:panel>

		<rich:panel>
			<rich:fileUpload id="uploadFile2"
				fileUploadListener="#{bean.method2}" maxFilesQuantity="1"
				immediateUpload="true" listHeight="65px"</rich:fileUpload>
		</rich:panel>

		<rich:panel>
			<a4j:commandButton id="addB" value="value" action="#{bean.method3}"
				render="stg" />
		</rich:panel>
	</rich:panel>
</h:form>





    
> Multiple fileUpload controls on the same page do not work
> ---------------------------------------------------------
>
>                 Key: RF-11977
>                 URL: https://issues.jboss.org/browse/RF-11977
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component
>    Affects Versions: 4.1.0.Final
>         Environment: IE7,8,9, FireFox, Google Chrome
>            Reporter: Roxana B
>            Priority: Critical
>
> Situation:
> Two rich:fileUpload controls, in the same form.
> When:
> # choose first file for upload
> # choose second file for upload
> # click upload button for the first file
> The first control disappears from the page and you cannot upload the second file (the upload event is never caught).
> Could you please indicate a solution for this problem?
> Thank you very much!
> Part of the code used for testing is the following:
> {code}
> <h:form id="uploadForm">
> 	<rich:panel>
> 		<rich:panel>
> 			<rich:fileUpload id="uploadFile1"
> 				fileUploadListener="#{bean.method1}" maxFilesQuantity="1"
> 				immediateUpload="true" listHeight="65px"</rich:fileUpload>
> 		</rich:panel>
> 		<rich:panel>
> 			<rich:fileUpload id="uploadFile2"
> 				fileUploadListener="#{bean.method2}" maxFilesQuantity="1"
> 				immediateUpload="true" listHeight="65px"</rich:fileUpload>
> 		</rich:panel>
> 		<rich:panel>
> 			<a4j:commandButton id="addB" value="value" action="#{bean.method3}"
> 				render="stg" />
> 		</rich:panel>
> 	</rich:panel>
> </h:form>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list