Re: [Lift] reload application.properties

2010-03-02 Thread David Pollak
On Tue, Mar 2, 2010 at 12:48 AM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com writes: [...] 1) Change the menu structure? Restart server Yes. This is a problem. 2) Change the menu text? Restart server (yes I use properties for text and

Re: [Lift] reload application.properties

2010-03-02 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: [...] What do you keep in your properties files that can change at runtime? Translated strings. You keep your translated strings in the files accessed by net.liftweb.util.Props? I haven't done any Lift localization, but I think that's

[Lift] reload application.properties

2010-03-01 Thread Martin
Hi is there any way to reload application.properties file after boot.scala finishes? I would like to do dynamic localization of properties on my site, without need to stop/start application. Mayby there is much better way to accomplish it. I would really appreciate any help. best regards,

Re: [Lift] reload application.properties

2010-03-01 Thread David Pollak
The Props.get stuff is frozen the first time its accessed. This is a philosophical issue for me. The properties should be fixed at start-up time. If there are things to vary, build an administrative interface or some other thingy (e.g., a separate HTTP listener) that allows you to manipulate

Re: [Lift] reload application.properties

2010-03-01 Thread Jeppe Nejsum Madsen
David Pollak feeder.of.the.be...@gmail.com writes: The Props.get stuff is frozen the first time its accessed. This is a philosophical issue for me. The properties should be fixed at start-up time. If there are things to vary, build an administrative interface or some other thingy (e.g., a

Re: [Lift] reload application.properties

2010-03-01 Thread David Pollak
On Mon, Mar 1, 2010 at 12:30 PM, Jeppe Nejsum Madsen je...@ingolfs.dkwrote: David Pollak feeder.of.the.be...@gmail.com writes: The Props.get stuff is frozen the first time its accessed. This is a philosophical issue for me. The properties should be fixed at start-up time. If there are

Re: [Lift] reload application.properties

2010-03-01 Thread Naftoli Gugenheim
Is a dynamic menu not advantageous for production apps (e.g., a CMS)? Would changing setSiteMap (if that's what it's called) to take a call by name be a bad idea? - David Pollakfeeder.of.the.be...@gmail.com wrote: On Mon, Mar 1, 2010 at 12:30 PM, Jeppe Nejsum