Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-63

having two or more <x:inputFileUpload> in the same form results in the <h:commandButton>'s action never being executed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.7
    • File Upload
    • 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="#

      {editProductPageBean.upFile}" storage="file"
      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="#

      {editProductPageBean.uploadThumb}

      " />
      </h:panelGrid>

      remove the second <x:inputFileUpload> and everything works fine

      Attachments

        Activity

          People

            manolito Manfred Geiler
            nealkatz Neal Katz
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: