ICEfaces
  1. ICEfaces
  2. ICE-9143

dateTimeEntry 3.x jQuery version populate javascript localisation from server DateFormatSymbols

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 4.0.BETA, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ACE 3.x
    • Assignee Priority:
      P2
    • Workaround Exists:
      Yes
    • Workaround Description:
      In the application, take the DateFormatSymbols and populate your .xhtml file with the javascript localisation strings manually for each locale that you support.

      Description

      When our dateTimeEntry component was YUI based and more rendered from the server, we had the ability to support any localisation that Java supports, automatically, as of ICE-6081. Since transitioning to basing dateTimeEntry off of jQuery, with it's rendering being done client side in javascript, we've used a model where the localisation is up to the application, as demonstrated in dateTimeEntry-locale-tutorial.

      It would be good to provide a means to hook into the faces-config.xml supported-locale and default-locale entries, and provide a means of populating the javascript locale structures based off of the Java server DateFormatSymbols.

      One necessity is that f:convertDateTime will take the client provided date string and pass it to a DateTimeConverter, which will use all of the Java in-built localisation strings, and cause conversion errors if the given string doesn't match the in-built strings. So it makes sense to make it use what it expects, and not encourage arbitrary strings from applications.
      1. dateTimeEntry-locale-FF21.png
        84 kB
      2. screenshot-01.png
        272 kB
      3. screenshot-02.png
        248 kB
      4. screenshot-03.png
        245 kB
      5. screenshot-04.png
        247 kB
      6. screenshot-05.png
        234 kB

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37062 Tue Jul 23 15:34:33 MDT 2013 yip.ng ICE-9143: dateTimeEntry 3.x jQuery version populate javascript localisation from server DateFormatSymbols.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/date/datelocale.xhtml
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryMeta.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/resources/org/icefaces/samples/showcase/view/resources/messages.properties
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/datetimeentry/datetimeentry.js
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37049 Mon Jul 22 18:10:46 MDT 2013 yip.ng ICE-9143: dateTimeEntry 3.x jQuery version populate javascript localisation from server DateFormatSymbols.
        Files Changed
        Commit graph ADD /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/date/datelocale.xhtml
        Commit graph ADD /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/date/DateLocaleBean.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/resources/org/icefaces/samples/showcase/view/resources/messages.properties
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/date/DateEntryBean.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37048 Mon Jul 22 17:44:18 MDT 2013 yip.ng ICE-9143: dateTimeEntry 3.x jQuery version populate javascript localisation from server DateFormatSymbols.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryMeta.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/jquery/ui/jquery-ui.css
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/datetimeentry/datetimeentry.js
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #36979 Tue Jul 16 16:08:59 MDT 2013 yip.ng ICE-9143: dateTimeEntry 3.x jQuery version populate javascript localisation from server DateFormatSymbols.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/datetimeentry/datetimeentry.js
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryRenderer.java

          People

          • Assignee:
            yip.ng
            Reporter:
            Mark Collette
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: