ICEmobile
  1. ICEmobile
  2. MOBI-1157

mobileshowcase Date and Time demo readOnly not respected - ios only

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE 1.3.1.GA_P04
    • Fix Version/s: EE 1.3.1.GA_P04
    • Component/s: Applications
    • Labels:
      None
    • Environment:
      ICEmobile EE-1.3.1-GA_P04 Jenkins build 67
      Tomcat 8, ios ipad 9.3.2

      Description

      showcasemobile Date and Time demo - ios only
      When user native = true and read only = true the date and time can still be changed and submit.

        Activity

        Liana Munroe created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Assignee Patrick Corless [ patrick.corless ] Judy Guglielmin [ judy.guglielmin ]
        Fix Version/s EE 1.3.1.GA_P04 [ 12970 ]
        Hide
        Judy Guglielmin added a comment -

        This is an iOS bug (feature?) as when I put the following :-
        <h:form>
        <input type="date" readonly="readonly"/>
        <mobi:commandButton value="Submit" type="submit"
        styleClass="submit"/>
        </h:form>
        the same behavior as above is noted.
        see
        http://stackoverflow.com/questions/37903780/read-only-date-field-on-ios-browser
        and appears to have been around since iOS8
        http://stackoverflow.com/questions/25928605/in-ios8-safari-readonly-inputs-are-handled-incorrectly

        as a workaround, if (readonly && iOS), the renderer will markup disabled as iOS respects that property for html5 markup

        Show
        Judy Guglielmin added a comment - This is an iOS bug (feature?) as when I put the following :- <h:form> <input type="date" readonly="readonly"/> <mobi:commandButton value="Submit" type="submit" styleClass="submit"/> </h:form> the same behavior as above is noted. see http://stackoverflow.com/questions/37903780/read-only-date-field-on-ios-browser and appears to have been around since iOS8 http://stackoverflow.com/questions/25928605/in-ios8-safari-readonly-inputs-are-handled-incorrectly as a workaround, if (readonly && iOS), the renderer will markup disabled as iOS respects that property for html5 markup
        Hide
        Judy Guglielmin added a comment -

        rev. 48974

        Show
        Judy Guglielmin added a comment - rev. 48974
        Judy Guglielmin made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #48974 Thu Jun 23 12:10:12 MDT 2016 judy.guglielmin MOBI-1157 iOS issue where <input type="text" readony="readonly"/> is not working since iOS8. As a workaround, if iOS and readonly (and disabled is not already true), it will markup disabled="disabled' which is respected.
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/timespinner/TimeSpinnerRenderer.java
        Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/datespinner/DateSpinnerRenderer.java
        Hide
        Liana Munroe added a comment -

        Verified ICEmobile trunk r48975. Tomcat 8, ipad ios 9.3.2.

        Show
        Liana Munroe added a comment - Verified ICEmobile trunk r48975. Tomcat 8, ipad ios 9.3.2.

          People

          • Assignee:
            Judy Guglielmin
            Reporter:
            Liana Munroe
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: