1. OFBiz
  2. OFBIZ-4547

renderDateTimeField Freemarker macro ignores framework date-time format settings


    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: Screen Widget Redesign, Trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
    • Sprint:
      Bug Crush Event - 21/2/2015



      The renderDateTimeField macro in htmlFormMacroLibrary.ftl ignores the
      framework date-time format settings and formats date-time fields using
      jQuery instead. Two problems with that:

      1. Even when shortDateInput = true, the date and time are displayed when
      the value is a Timestamp.
      2. If the value is anything other than a Timestamp, (java.util.Date or
      java.sql.Date) then the field content is localized, and any attempt to
      pass the field content to a service fails - because there is no way to
      convert the string back to the proper object type.

      Why was this change made?

      I located the problem and committed some notes in rev 1197028. I don't
      have time right now to fix it.

      The problem isn't caused by JavaScript, it's caused by the renderer. We
      still need to fix the JavaScript code though.


      1. OFBIZ-4547.patch
        3 kB
        Nicolas Malin


        Nicolas Malin made changes -
        Status Patch Available [ 10002 ] Closed [ 6 ]
        Resolution Cannot Reproduce [ 5 ]
        Sharan Foga made changes -
        Rank Ranked higher
        Sharan Foga made changes -
        Rank Ranked higher
        Sharan Foga made changes -
        Rank Ranked higher
        Sharan Foga made changes -
        Sprint Bug Crush Event - 21/2/2015 [ 91 ]
        Nicolas Malin made changes -
        Affects Version/s Screen Widget Redesign [ 12319143 ]
        Nicolas Malin made changes -
        Attachment OFBIZ-4547.patch [ 12502783 ]
        Nicolas Malin made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Nicolas Malin created issue -


          • Assignee:
            Nicolas Malin
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: