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

        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.
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: