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

        Mark Collette created issue -
        Mark Collette made changes -
        Field Original Value New Value
        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.
        Assignee yip.ng [ yip.ng ]
        Fix Version/s 3.4 [ 10770 ]
        Workaround Exists Yes [ 10007 ]
        Ken Fyten made changes -
        Assignee Priority P2 [ 10011 ]
        yip.ng made changes -
        Attachment screenshot-01.png [ 16129 ]
        yip.ng made changes -
        Attachment screenshot-02.png [ 16130 ]
        yip.ng made changes -
        Attachment screenshot-03.png [ 16131 ]
        yip.ng made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Carmen Cristurean made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Carmen Cristurean made changes -
        Attachment dateTimeEntry-locale-FF21.png [ 16136 ]
        Ken Fyten made changes -
        Assignee yip.ng [ yip.ng ] Nils Lundquist [ nils.lundquist ]
        Nils Lundquist made changes -
        Assignee Nils Lundquist [ nils.lundquist ] yip.ng [ yip.ng ]
        yip.ng made changes -
        Attachment screenshot-04.png [ 16148 ]
        yip.ng made changes -
        Attachment screenshot-05.png [ 16149 ]
        yip.ng made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: