Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Windows, Tomcat 5.5 and Sun RI 1.1.01
Description
having two or more <x:inputFileUpload> in the same form results in the <h:commandButton>'s action never being executed.
example,
<h:panelGrid columns="3" styleClass="page-header">
<h:outputText value="Select Primary Image" />
<x:inputFileUpload id="fileupload1" accept="image/*"
value="#
styleClass="fileUploadInput" required="true" />
<h:commandButton value="Upload"
action="#{editProductPageBean.uploadPrimary}" />
<h:outputText value="Select Thumb Image" />
<x:inputFileUpload id="fileupload2" accept="image/*"
value="#{editProductPageBean.upFile}
" storage="file"
styleClass="fileUploadInput" required="true" />
<h:commandButton value="Upload"
action="#
" />
</h:panelGrid>
remove the second <x:inputFileUpload> and everything works fine