ICEmobile
  1. ICEmobile
  2. MOBI-762

change mobi.AjaxRequest in icemobile.js of jsp project to ice.mobi.AjaxRequest

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3 Beta
    • Fix Version/s: 1.3 Final
    • Component/s: JSP
    • Labels:
      None
    • Environment:
      icemobile jsp

      Description

      final api for both jsf and jsp will be ice.mobi.AjaxRequest. since this is visible to developers in jsp, should be done quickly so change to api is not noticeable.
      Tags affected-> commandButton, commandButtonGroup, panelConfirmation, menuButton, submitNotification.

        Activity

        Judy Guglielmin created issue -
        Judy Guglielmin made changes -
        Field Original Value New Value
        Fix Version/s 1.3 Final [ 10873 ]
        Hide
        Judy Guglielmin added a comment - - edited

        ice.mobi.userAjaxRequest(....

        with the following:-
        ice.mobi.ajaxRequest(options){
        if( typeof ice.mobi.userAjaxRequest === "function")

        { ice.mobi.userAjaxRequest(options); }

        else

        { //full submit }

        ....
        if user does not define ice.mobi.userAjaxRequest, then ice.mobi.ajaxRequest(options) will just do a form submit on the form found for the element.
        So hidden api uses ice.mobi.ajaxRequest (like jsf will in 1.4) and the user defines ice.mobi.userAjaxRequest(options).

        Show
        Judy Guglielmin added a comment - - edited ice.mobi.userAjaxRequest(.... with the following:- ice.mobi.ajaxRequest(options){ if( typeof ice.mobi.userAjaxRequest === "function") { ice.mobi.userAjaxRequest(options); } else { //full submit } .... if user does not define ice.mobi.userAjaxRequest, then ice.mobi.ajaxRequest(options) will just do a form submit on the form found for the element. So hidden api uses ice.mobi.ajaxRequest (like jsf will in 1.4) and the user defines ice.mobi.userAjaxRequest(options).
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #35952 Wed Jun 05 15:51:11 MDT 2013 judy.guglielmin MOBI-762 user now can define their own ice.mobi.userAjaxRequest. If not defined, then form submit will take place. Affects commandButton, commandButtonGroup, panelConfirmation, submitNotification, menuButton.
        Files Changed
        Commit graph MODIFY /icemobile/branches/icemobile-1.3.0/icemobile/jsp/tests/jsptagtest/src/main/webapp/button/buttonGroup.jsp
        Commit graph MODIFY /icemobile/branches/icemobile-1.3.0/icemobile/jsp/tests/jsptagtest/src/main/webapp/button/submitNotification.jsp
        Commit graph MODIFY /icemobile/branches/icemobile-1.3.0/icemobile/samples/jsp/icemobilespring/src/main/webapp/WEB-INF/views/inc/buttons-content.jsp
        Commit graph MODIFY /icemobile/branches/icemobile-1.3.0/icemobile/jsp/tests/jsptagtest/src/main/webapp/button/menuButton.jsp
        Commit graph MODIFY /icemobile/branches/icemobile-1.3.0/icemobile/jsp/tests/jsptagtest/src/main/webapp/button/panelConfirmation.jsp
        Commit graph MODIFY /icemobile/branches/icemobile-1.3.0/icemobile/jsp/src/main/javascript/icemobile.js
        Commit graph MODIFY /icemobile/branches/icemobile-1.3.0/icemobile/jsp/src/main/java/org/icemobile/jsp/tags/CommandButtonTag.java
        Hide
        Judy Guglielmin added a comment -

        rev 35952 for 1.3.0 branch rev 35955 for trunk

        Show
        Judy Guglielmin added a comment - rev 35952 for 1.3.0 branch rev 35955 for trunk
        Judy Guglielmin made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #35955 Wed Jun 05 16:49:33 MDT 2013 judy.guglielmin MOBI-762 ice.mobi.ajaxRequest looks for user defined ice.mobi.userAjaxRequest and if not found performs form.submit() for submitted element.
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/jsp/src/main/javascript/icemobile.js
        Commit graph MODIFY /icemobile/trunk/icemobile/jsp/tests/jsptagtest/src/main/webapp/button/panelConfirmation.jsp
        Commit graph MODIFY /icemobile/trunk/icemobile/samples/jsp/icemobilespring/src/main/webapp/WEB-INF/views/inc/buttons-content.jsp
        Commit graph MODIFY /icemobile/trunk/icemobile/jsp/src/main/java/org/icemobile/jsp/tags/CommandButtonTag.java
        Commit graph MODIFY /icemobile/trunk/icemobile/jsp/tests/jsptagtest/src/main/webapp/layoutComponents.html
        Commit graph MODIFY /icemobile/trunk/icemobile/jsp/tests/jsptagtest/src/main/webapp/button/menuButton.jsp
        Commit graph MODIFY /icemobile/trunk/icemobile/jsp/tests/jsptagtest/src/main/webapp/button/buttonGroup.jsp
        Commit graph MODIFY /icemobile/trunk/icemobile/jsp/tests/jsptagtest/src/main/webapp/button/submitNotification.jsp

          People

          • Assignee:
            Judy Guglielmin
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: