[
https://issues.apache.org/jira/browse/CLK-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adrian A. updated CLK-324:
--------------------------
Fix Version/s: 3.0.0
> Click should reload click-page.properties in development mode
> -------------------------------------------------------------
>
> Key: CLK-324
> URL: https://issues.apache.org/jira/browse/CLK-324
> Project: Click
> Issue Type: New Feature
> Components: core
> Affects Versions: 1.5 M1
> Reporter: Ricardo R. Lecheta
> Assignee: Malcolm Edgar
> Priority: Minor
> Fix For: 3.0.0
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.1#6144)