Uploaded image for project: 'Click'
  1. Click
  2. CLK-610

DateField formatPattern should not be static string, but static variable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • None
    • None

    Description

      DateField constructors contain this code:

      super(...);
      ...
      setFormatPattern("dd MMM yyyy");
      (yes, same code 3 times

      I suggest to replace it with this:

      public static String defaultFormatPattern = "dd MMM yyyy";

      super(...);
      ...
      setFormatPattern(defaultFormatPattern);

      Attachments

        Activity

          People

            sabob Bob Schellink
            andreyrybin Andrew Fink
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: