This is the option described in the WIKI: http://www.wicket-wiki.org.uk/wiki/index.php/FAQs#My_application_says_.22DEVELOPMENT_MODE.22.2C_how_do_I_switch_to_production.3F
>From WebApplication.internalInit() javadoc * Internal intialization. First determine the deployment mode. First check * the system property -Dwicket.configuration. If it does not exist check * the servlet init parameter ( * <code><init-param><param-name>configuration</param-name></code>). * If not found check the servlet context init paramert * <code><context-param><param-name6gt;configuration</param-name></code>). * If the parameter is "development" (which is default), settings * appropriate for development are set. calling configure in init() is the third option. I suggest you use web.xml init-param to configure it. No code changes required when you deploy it into production. Juergen On 9/1/06, Korbinian Bachl <[EMAIL PROTECTED]> wrote: > it has to be in the init() function of the Application Class - the thing you > write is deprecated in 1.2 already, and not supported anymore in 2.0 > > e.g: > class myapp extends WebApp{ > > init() { > configure(foo.bar); > } > } > regards > > Korbinian > > > > _____ > > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von Stefan > Lindner > Gesendet: Freitag, 1. September 2006 11:44 > An: wicket-user@lists.sourceforge.net > Betreff: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode > > > In wicket 1.2.x it was possilbe to switch the mode in the application > construktor like > > public class MyApplication extends WebApplication{ > public MyApplication() { > configure(Application.DEPLOYMENT); > } > > now this leads tho an exception during deployment > > wicket.WicketRuntimeException: Use Application.init() method for > configuring your application object > at wicket.Application.getSettings(Application.java:543) > at wicket.Application.getResourceSettings(Application.java:499) > at wicket.Application.configure(Application.java:338) > at wicket.Application.configure(Application.java:298) > > if I move the call of "configure" to the init method the message > > You are in DEVELOPMENT mode > > appears during deployment. What is the correct way to switch to deployment > mode while application initialization/deployment? > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user