ICEmobile
  1. ICEmobile
  2. MOBI-176

Mobi dateSpinner can not handle mm/dd/yyyy pattern

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Williams
    • Fix Version/s: 1.0 Williams
    • Component/s: None
    • Labels:
      None
    • Environment:
      any

      Description

      The date spinner has an issue when given date patterns that contain slashes. The current JavaScript does not check for this type of pattern. The other issue with dateSpinner is that if users specifidies MM/dd/yyyy format the popup dialog will not changes its display, always showing yyyy MM dd as the default input order.

      One more issue that can occur is in how the pattern attribute is used on the <mobi:dateSpinner/> in combination with a dateTimeConverter. Currently the pattern attributes wins over the converter which will results in conversion error the end user can't fix unless they manually correct then date in the input fields. The pattern attribute if different from the converter should lose out of the converter.

        Activity

        Hide
        Patrick Corless added a comment -

        I've update the dateSpinner on a few fronts. First I sorted out the pattern logic so that if for some reason the pattern or dateTimeConverter differ, then the converter will win. I also updated the component so that if only a dateTimeConverter is used it's pattern will take effect for display and conversion.

        The renderer has been updated so that the popup panel input buttons will align with the pattern value. So if MM/dd/yyy is specified as the pattern then the input will be in the order MM DD YYYY.

        And finally the datespinner.js has been updated to handle patterns with the '/' as well as the original '-' delimiter.

        Show
        Patrick Corless added a comment - I've update the dateSpinner on a few fronts. First I sorted out the pattern logic so that if for some reason the pattern or dateTimeConverter differ, then the converter will win. I also updated the component so that if only a dateTimeConverter is used it's pattern will take effect for display and conversion. The renderer has been updated so that the popup panel input buttons will align with the pattern value. So if MM/dd/yyy is specified as the pattern then the input will be in the order MM DD YYYY. And finally the datespinner.js has been updated to handle patterns with the '/' as well as the original '-' delimiter.
        Hide
        Patrick Corless added a comment -

        Marking issue as resolved.

        Show
        Patrick Corless added a comment - Marking issue as resolved.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: