[re-post due to mail-list problems.]
Hi,
How do I find out in which mode Wicket is running (development/production)?
Regards,
Erik.
--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/
-
Take Surveys.
-user list
Betreff: [Wicket-user] How to find Wicket mode
(Production/Development )?
[re-post due to mail-list problems.]
Hi,
How do I find out in which mode Wicket is running
(development/production)?
Regards,
Erik.
--
Erik van Oosten
http://www.day-to-day
:)That I know.
I meant, how can I find out from code? I should have been more clear :)
Erik.
Korbinian Bachl schreef:
Hi Eelco,
you watch the first 2 lines in the server log
or you can get the config value in the app class...
Regards
--
Erik van Oosten
not yet, we should add this to the coreplease make a feature request.johanOn 10/5/06, Erik van Oosten
[EMAIL PROTECTED] wrote::)That I know.I meant, how can I find out from code? I should have been more clear :)
Erik.Korbinian Bachl schreef: Hi Eelco, you watch the first 2 lines in the server
You can use this in your Application:
protected final void init() {
String configuration =
getWicketServlet().getInitParameter(Application.CONFIGURATION);
if (configuration != null
configuration.equals(Application.DEVELOPMENT)) {
// ...
}
}
Pierre-Yves
Erik van Oosten a
Created.
https://sourceforge.net/tracker/index.php?func=detailaid=1571677group_id=119783atid=684978
Thanks for the code Pierre-Yves.
Regards,
Erik.
Johan Compagner schreef:
not yet, we should add this to the core
please make a feature request.
johan
--
Erik van Oosten