ICEfaces
  1. ICEfaces
  2. ICE-3122

inputFile selectively post form

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      a/synchronous mode
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      ICE-2860 makes the inputFile POST its surrounding form, before and after the file upload, so that the user interface may show an indeterminate progress bar during the upload. That's for when the application is running in synchronous mode, and can't push progress notifications. But, it also happens when in asynchronous mode, which may be undesirable. And it's a bit of an incompatible behavioural change, since before the inputFile did not submit its parent form, whereas now it will.

      I recommend adding an attribute, to control when the form submissions may occur. It should be able to enumerate the following modes:

      Never
        - Form submissions would never occur
      NotAsync
        - Form submissions would not occur if the app was in asynchronous mode
      Before
        - Form submission would occur before the file upload
      After
        - Form submission would occur after the file upload, perhaps to process form fields along with the file
      BeforeAndAfter
        - Form submission would occur before and after the file upload, which is the current behaviour, to support synchronous mode

        Issue Links

          Activity

          Hide
          Mark Collette added a comment -

          We decided to implement the majority of the modes described, in the new String attribute submitOnUpload, in inputFile. They are called "none" (the default value), "preUpload", "postUpload", "preAndPostUpload".

          TRUNK
          Subversion 16911
          icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-inputFile-props.xml
          icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java
          icefaces\component\src\com\icesoft\faces\component\inputfile\InputFileRenderer.java

          ICEfaces 1.7 branch
          Subversion 16912
          icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-inputFile-props.xml
          icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java
          icefaces\component\src\com\icesoft\faces\component\inputfile\InputFileRenderer.java

          Show
          Mark Collette added a comment - We decided to implement the majority of the modes described, in the new String attribute submitOnUpload, in inputFile. They are called "none" (the default value), "preUpload", "postUpload", "preAndPostUpload". TRUNK Subversion 16911 icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-inputFile-props.xml icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java icefaces\component\src\com\icesoft\faces\component\inputfile\InputFileRenderer.java ICEfaces 1.7 branch Subversion 16912 icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-inputFile-props.xml icefaces\component\src\com\icesoft\faces\component\inputfile\InputFile.java icefaces\component\src\com\icesoft\faces\component\inputfile\InputFileRenderer.java

            People

            • Assignee:
              Unassigned
              Reporter:
              Mark Collette
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: