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

Click should reload click-page.properties in development mode

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.5 M1
    • Fix Version/s: 3.0.0
    • Component/s: core
    • Labels:
      None

      Description

      It will be good if Click could reload the i18n files in development mode, this will help a lot.

      In my project, I override the Page.getMessages() method:

      I override the getMessages() to reload the click-page.properties every request:

      My PropertyMessagesMap just creates a new Properties, and load the InputStream.

      public Map getMessages() {
      if (Click.isDevelopmentMode()) {
      if (messages == null)

      { messages = new PropertyMessagesMap(getClass(), PAGE_MESSAGES); }

      return messages;
      } else

      { return super.getMessages(); }

      }

      The PropertyMessagesMap just create a new Properties, get the .properties InputStream, and load it.

        Attachments

          Activity

            People

            • Assignee:
              medgar Malcolm Edgar
              Reporter:
              rlecheta Ricardo R. Lecheta
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: