Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE 1.0
    • Fix Version/s: 1.1 Beta
    • Component/s: Spring
    • Labels:
      None
    • Environment:
      ICEmobile, Spring MVC

      Description

      ICEmobile support for Spring MVC.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28671 Tue Apr 10 13:41:20 MDT 2012 ted.goddard continue scanning even if file element is not valid (MOBI-215)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/client/android/integration/util/src/org/icemobile/client/android/UtilInterface.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28672 Tue Apr 10 14:12:53 MDT 2012 ted.goddard serialize form in ice.upload (MOBI-215)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/client/android/container/assets/icefaces/native-interface.js
        Ted Goddard created issue -
        Hide
        Ted Goddard added a comment -

        UtilInterface was modified to continue scanning the serialized form even if a "file" was not valid. The problem occurred in a Spring sample where an element was named "file" but was not a file upload. Appending -file to the field name is likely not sufficient (due to cases like this) so we may want to modify the mechanism further.

        Show
        Ted Goddard added a comment - UtilInterface was modified to continue scanning the serialized form even if a "file" was not valid. The problem occurred in a Spring sample where an element was named "file" but was not a file upload. Appending -file to the field name is likely not sufficient (due to cases like this) so we may want to modify the mechanism further.
        Hide
        Ted Goddard added a comment -

        Spring MVC contains an AjaxUtils class that includes an ajax detection method:

        public class AjaxUtils {

        public static boolean isAjaxRequest(WebRequest webRequest) {

        • String requestedWith = webRequest.getHeader("X-Requested-With");
          + String requestedWith = webRequest.getHeader("Faces-Request");
          + if ("partial/ajax".equals(requestedWith)) { + return true; + }

          +
          + requestedWith = webRequest.getHeader("X-Requested-With");
          return requestedWith != null ? "XMLHttpRequest".equals(requestedWith) : false;
          }

        This application class was modified to detect the Faces-Request parameter that the ICEmobile containers currently send, but the X-Requested-With header set by jQuery should also be considered. Note that we may need to distinguish between full page and ajax requests in the container; however a full-page request should be a new method since the current ice.upload() does not replace the current page with the HTTP response.

        Show
        Ted Goddard added a comment - Spring MVC contains an AjaxUtils class that includes an ajax detection method: public class AjaxUtils { public static boolean isAjaxRequest(WebRequest webRequest) { String requestedWith = webRequest.getHeader("X-Requested-With"); + String requestedWith = webRequest.getHeader("Faces-Request"); + if ("partial/ajax".equals(requestedWith)) { + return true; + } + + requestedWith = webRequest.getHeader("X-Requested-With"); return requestedWith != null ? "XMLHttpRequest".equals(requestedWith) : false; } This application class was modified to detect the Faces-Request parameter that the ICEmobile containers currently send, but the X-Requested-With header set by jQuery should also be considered. Note that we may need to distinguish between full page and ajax requests in the container; however a full-page request should be a new method since the current ice.upload() does not replace the current page with the HTTP response.
        Steve Maryka made changes -
        Field Original Value New Value
        Assignee Steve Maryka [ steve.maryka ] Ted Goddard [ ted.goddard ]
        Steve Maryka made changes -
        Component/s Spring [ 10063 ]
        Fix Version/s Spring 1.0 Alpha [ 10334 ]
        Hide
        Ted Goddard added a comment -

        Initial Spring MVC support is available in 1.1 BETA.

        Show
        Ted Goddard added a comment - Initial Spring MVC support is available in 1.1 BETA.
        Ted Goddard made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.1 Beta [ 10320 ]
        Fix Version/s Spring 1.0 Alpha [ 10334 ]
        Resolution Fixed [ 1 ]
        Migration made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: