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

Click should reload click-page.properties in development mode

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.5 M1
    • 3.0.0
    • core
    • 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

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

            Dates

              Created:
              Updated: