ICEmobile
  1. ICEmobile
  2. MOBI-1121

InputText: dynamic changes to type=number step property are not being applied on ajax updates

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: EE 1.3.1.GA_P01
    • Fix Version/s: EE 1.3.1.GA_P03
    • Component/s: Faces
    • Labels:
      None
    • Environment:
      n/a

      Description

      It seems that the step attribute of the mobi:inputText has to rendered from a full page refresh as changes to the step attribute are not being applied to the DOM from a DOM update.

      <?xml version='1.0' encoding='UTF-8'?>
      <partial-response><changes><update id="inputPage:inputForm:numberInput"><![CDATA[<input autocapitalize="off" autocorrect="off" class="mobi-input-text ui-input-text " id="inputPage:inputForm:numberInput" name="inputPage:inputForm:numberInput" placeholder="Number input" step="1.2" style="" type="number" value="9.6" />]]></update><update id="javax.faces.ViewState"><![CDATA[-8413699931142451045:-4093515930129722581]]></update><eval><![CDATA[var iceFormIdList=['inputPage:inputForm']; ice.fixViewStates(iceFormIdList,'-8413699931142451045:-4093515930129722581');]]></eval></changes></partial-response>

      DOM after update:

      <input autocapitalize="off" autocorrect="off" class="mobi-input-text ui-input-text " id="inputPage:inputForm:numberInput" name="inputPage:inputForm:numberInput" placeholder="Number input" step="0.8" style="" type="number" value="6.4">

        Activity

        Ken Fyten made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]
        Hide
        Ken Fyten added a comment -

        Avoided this issue by removing the dynamic nature of the demo.

        The solution to this problem lies in configuring the domDiff to perform attribute level updates, which are not reliable on older IE browsers.

        Show
        Ken Fyten added a comment - Avoided this issue by removing the dynamic nature of the demo. The solution to this problem lies in configuring the domDiff to perform attribute level updates, which are not reliable on older IE browsers.
        Ken Fyten made changes -
        Assignee Judy Guglielmin [ judy.guglielmin ] Ken Fyten [ ken.fyten ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44688 Wed May 13 15:22:53 MDT 2015 judy.guglielmin MOBI-1121 modify example to not dynamically change any input attributes
        Files Changed
        Commit graph MODIFY /icemobile/tags/icemobile-1.3.1_P03/icemobile/samples/jsf/mobileshowcase/src/main/java/org/icemobile/samples/mobileshowcase/view/examples/input/input/InputBean.java
        Commit graph MODIFY /icemobile/tags/icemobile-1.3.1_P03/icemobile/samples/jsf/mobileshowcase/src/main/webapp/WEB-INF/includes/examples/input/input-example.xhtml
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44686 Wed May 13 14:10:18 MDT 2015 judy.guglielmin MOBI-1121 modify example to use static value of 1 for step and support for it as float so it's part of the page update. none of the input attributes are updating dynamically using ajax currently.
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/samples/jsf/mobileshowcase/src/main/java/org/icemobile/samples/mobileshowcase/view/examples/input/input/InputBean.java
        Commit graph MODIFY /icemobile/trunk/icemobile/samples/jsf/mobileshowcase/src/main/webapp/WEB-INF/includes/examples/input/input-example.xhtml
        Ken Fyten made changes -
        Fix Version/s EE 1.3.1.GA_P03 [ 11970 ]
        Patrick Corless made changes -
        Field Original Value New Value
        Assignee Patrick Corless [ patrick.corless ] Judy Guglielmin [ judy.guglielmin ]
        Philip Breau created issue -

          People

          • Assignee:
            Ken Fyten
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: