ICEfaces
  1. ICEfaces
  2. ICE-5769

sparkle inputFiles returning malformed updates

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha3
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      glimmer + sparkle

      Description

      If you run the sparkle showcase (svn\ossrepo\icefaces\scratchpads\sparkle\showcase\test), and go to the inputFiles page, you will find a page with two forms. Both forms have an inputText field and a commandButton. The bottom form also has the inputFiles component. If you enter some text in the bottom inputText field, select a a file in the inputFiles component, and click on the bottom commandButton, you will get back a malformed response.

        Issue Links

          Activity

          Hide
          Ken Fyten added a comment -

          Please analyze the nature of the malformed response. This is a blocker for the inputFile component.

          Show
          Ken Fyten added a comment - Please analyze the nature of the malformed response. This is a blocker for the inputFile component.
          Hide
          Mark Collette added a comment -

          Investigation of DOMResponseWriter and DOMPartialViewContext led me to discover that the InputFilesPhaseListener was calling setAjaxRequest(true), but not setPartialRequest(true) on the PartialViewContext. This confused the DOMResponseWriter into treating the response as both a full page GET style response, and a partial Ajax style response.

          Subversion 21513
          sparkle\component\src\org\icefaces\component\inputFiles\InputFilesPhaseListener.java

          Show
          Mark Collette added a comment - Investigation of DOMResponseWriter and DOMPartialViewContext led me to discover that the InputFilesPhaseListener was calling setAjaxRequest(true), but not setPartialRequest(true) on the PartialViewContext. This confused the DOMResponseWriter into treating the response as both a full page GET style response, and a partial Ajax style response. Subversion 21513 sparkle\component\src\org\icefaces\component\inputFiles\InputFilesPhaseListener.java

            People

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

              Dates

              • Created:
                Updated:
                Resolved: