Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode
why does it causes problems for you session injection if you haveto configure your app in the init?johanOn 9/1/06, Justin Lee [EMAIL PROTECTED] wrote:-BEGIN PGP SIGNED MESSAGE-Hash: RIPEMD160 Which causes problems if you want to use @SpringBean injection in yoursession store code.We had to work around it by adding the componentinjector in newSessionStore().Eelco Hillenius wrote: We imposed having to do initialization stuff in init() rather than the constructor as unfortunately, this is the way servlets work. Init parameters, the servlet context etc are not available in the constructor yet (and neither in the constructor of a servlet) and as changes are you'll use that, we decided to make it a hard check that no configuration is done in the constructor. On top of that, we can now ensure default configuration first (internalInit) so that you don't have to be aware of order problems when you configure. Eelco On 9/1/06, Johan Compagner [EMAIL PROTECTED] wrote: yes this is pretty much also the case in 1.2.xwe will throw an error then also. That is as far as i know not a 2.0 thing. You can't configure stuff in the constructor of your app. You have to do it in init()and you shouldn't call configure by code yourself (configure should be private or something if it was me) Just set the right property you want (Deployment/Development) where ever you want it (web.xml or system property) And then in the init() do you other stuff that you also want. johan On 9/1/06, Korbinian Bachl [EMAIL PROTECTED] wrote: why doesnt it really matter ? - sorry, but i dont understand what you mean. as far as i know, the only place now to configure in 2.0 will be the init() or the web.xml - rest will be regarded as error... Regards Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] Im Auftrag von Frank Bille Gesendet: Freitag, 1. September 2006 12:27 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode Well it doesn't really matter, because your configure is the one that counts. It's only because Application sets a default configure (DEVELOPMENT) before your init is called. Frank 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 deploymentwicket.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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642
Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode
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? attachment: winmail.dat- 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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode
Well it doesn't really matter, because your configure is the one that counts. It's only because Application sets a default configure (DEVELOPMENT) before your init is called. Frank On 9/1/06, Korbinian Bachl [EMAIL PROTECTED] wrote: it has to be in the init() function of the Application Class - the thing youwrite is deprecated in 1.2 already, and not supported anymore in 2.0e.g:class myapp extends WebApp{init() {configure( foo.bar);}}regardsKorbinian_Von: [EMAIL PROTECTED][mailto: [EMAIL PROTECTED]] Im Auftrag von StefanLindnerGesendet: Freitag, 1. September 2006 11:44An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT modeIn wicket 1.2.x it was possilbe to switch the mode in the applicationconstruktor likepublic 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 objectat 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 modeappears 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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode
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 ( * codelt;init-paramgtlt;param-namegt;configurationlt;/param-namegt;/code). * If not found check the servlet context init paramert * codelt;context-paramgtlt;param-name6gt;configurationlt;/param-namegt;/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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode
why doesnt it really matter ? - sorry, but i dont understand what you mean. as far as i know, the only place now to configure in 2.0 will be the init() or the web.xml - rest will be regarded as error... Regards Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Frank BilleGesendet: Freitag, 1. September 2006 12:27An: wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode Well it doesn't really matter, because your configure is the one that counts. It's only because Application sets a default configure (DEVELOPMENT) before your init is called. Frank On 9/1/06, Korbinian Bachl [EMAIL PROTECTED] wrote: it has to be in the init() function of the Application Class - the thing youwrite is deprecated in 1.2 already, and not supported anymore in 2.0e.g:class myapp extends WebApp{init() {configure( foo.bar);}}regardsKorbinian_Von: [EMAIL PROTECTED][mailto: [EMAIL PROTECTED]] Im Auftrag von StefanLindnerGesendet: Freitag, 1. September 2006 11:44An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT modeIn wicket 1.2.x it was possilbe to switch the mode in the applicationconstruktor likepublic class MyApplication extends WebApplication{ public MyApplication() {configure(Application.DEPLOYMENT);}now this leads tho an exception during deployment wicket.WicketRuntimeException: Use Application.init() method forconfiguring your application objectat 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 modeappears 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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode
yes this is pretty much also the case in 1.2.x we will throw an error then also.That is as far as i know not a 2.0 thing.You can't configure stuff in the constructor of your app. You have to do it in init() and you shouldn't call configure by code yourself (configure should be private or something if it was me)Just set the right property you want (Deployment/Development) where ever you want it (web.xml or system property) And then in the init() do you other stuff that you also want.johanOn 9/1/06, Korbinian Bachl [EMAIL PROTECTED] wrote: why doesnt it really matter ? - sorry, but i dont understand what you mean. as far as i know, the only place now to configure in 2.0 will be the init() or the web.xml - rest will be regarded as error... Regards Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Frank BilleGesendet: Freitag, 1. September 2006 12:27An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode Well it doesn't really matter, because your configure is the one that counts. It's only because Application sets a default configure (DEVELOPMENT) before your init is called. Frank On 9/1/06, Korbinian Bachl [EMAIL PROTECTED] wrote: it has to be in the init() function of the Application Class - the thing youwrite is deprecated in 1.2 already, and not supported anymore in 2.0e.g:class myapp extends WebApp{init() {configure( foo.bar);}}regardsKorbinian_Von: [EMAIL PROTECTED][mailto: [EMAIL PROTECTED]] Im Auftrag von StefanLindnerGesendet: Freitag, 1. September 2006 11:44An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT modeIn wicket 1.2.x it was possilbe to switch the mode in the applicationconstruktor likepublic class MyApplication extends WebApplication{ public MyApplication() {configure(Application.DEPLOYMENT);}now this leads tho an exception during deployment wicket.WicketRuntimeException: Use Application.init() method forconfiguring your application objectat 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 modeappears 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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode
What I meant was that it's only a log entry. It's written there because the configuration is tried to be set BEFORE your init is called, based on the params in the web.xml. The configuration is set to DEPLOYMENT if you choose to in init(). Refer to Jurgens answer. I think that it's better to configure it in web.xml if you don't want that log output.On 9/1/06, Korbinian Bachl [EMAIL PROTECTED] wrote: why doesnt it really matter ? - sorry, but i dont understand what you mean. as far as i know, the only place now to configure in 2.0 will be the init() or the web.xml - rest will be regarded as error... Regards Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Frank BilleGesendet: Freitag, 1. September 2006 12:27An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode Well it doesn't really matter, because your configure is the one that counts. It's only because Application sets a default configure (DEVELOPMENT) before your init is called. Frank On 9/1/06, Korbinian Bachl [EMAIL PROTECTED] wrote: it has to be in the init() function of the Application Class - the thing youwrite is deprecated in 1.2 already, and not supported anymore in 2.0e.g:class myapp extends WebApp{init() {configure( foo.bar);}}regardsKorbinian_Von: [EMAIL PROTECTED][mailto: [EMAIL PROTECTED]] Im Auftrag von StefanLindnerGesendet: Freitag, 1. September 2006 11:44An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT modeIn wicket 1.2.x it was possilbe to switch the mode in the applicationconstruktor likepublic class MyApplication extends WebApplication{ public MyApplication() {configure(Application.DEPLOYMENT);}now this leads tho an exception during deployment wicket.WicketRuntimeException: Use Application.init() method forconfiguring your application objectat 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 modeappears 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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode
Thank you all for your comments. Now I set the configuration in Application.init. I was jutst wondering about seeing the You are in DEVELOPMENT mode during deployment, what breaks our deployment checker wich reports an error if the deploy,ment ready application still reports You are in DEVELOPMENT mode. Thank you all! winmail.dat- 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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode
We imposed having to do initialization stuff in init() rather than the constructor as unfortunately, this is the way servlets work. Init parameters, the servlet context etc are not available in the constructor yet (and neither in the constructor of a servlet) and as changes are you'll use that, we decided to make it a hard check that no configuration is done in the constructor. On top of that, we can now ensure default configuration first (internalInit) so that you don't have to be aware of order problems when you configure. Eelco On 9/1/06, Johan Compagner [EMAIL PROTECTED] wrote: yes this is pretty much also the case in 1.2.x we will throw an error then also. That is as far as i know not a 2.0 thing. You can't configure stuff in the constructor of your app. You have to do it in init() and you shouldn't call configure by code yourself (configure should be private or something if it was me) Just set the right property you want (Deployment/Development) where ever you want it (web.xml or system property) And then in the init() do you other stuff that you also want. johan On 9/1/06, Korbinian Bachl [EMAIL PROTECTED] wrote: why doesnt it really matter ? - sorry, but i dont understand what you mean. as far as i know, the only place now to configure in 2.0 will be the init() or the web.xml - rest will be regarded as error... Regards Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Frank Bille Gesendet: Freitag, 1. September 2006 12:27 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode Well it doesn't really matter, because your configure is the one that counts. It's only because Application sets a default configure (DEVELOPMENT) before your init is called. Frank 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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing
Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Which causes problems if you want to use @SpringBean injection in your session store code. We had to work around it by adding the component injector in newSessionStore(). Eelco Hillenius wrote: We imposed having to do initialization stuff in init() rather than the constructor as unfortunately, this is the way servlets work. Init parameters, the servlet context etc are not available in the constructor yet (and neither in the constructor of a servlet) and as changes are you'll use that, we decided to make it a hard check that no configuration is done in the constructor. On top of that, we can now ensure default configuration first (internalInit) so that you don't have to be aware of order problems when you configure. Eelco On 9/1/06, Johan Compagner [EMAIL PROTECTED] wrote: yes this is pretty much also the case in 1.2.x we will throw an error then also. That is as far as i know not a 2.0 thing. You can't configure stuff in the constructor of your app. You have to do it in init() and you shouldn't call configure by code yourself (configure should be private or something if it was me) Just set the right property you want (Deployment/Development) where ever you want it (web.xml or system property) And then in the init() do you other stuff that you also want. johan On 9/1/06, Korbinian Bachl [EMAIL PROTECTED] wrote: why doesnt it really matter ? - sorry, but i dont understand what you mean. as far as i know, the only place now to configure in 2.0 will be the init() or the web.xml - rest will be regarded as error... Regards Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Frank Bille Gesendet: Freitag, 1. September 2006 12:27 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Wicket 2.0: You are in DEVELOPMENT mode Well it doesn't really matter, because your configure is the one that counts. It's only because Application sets a default configure (DEVELOPMENT) before your init is called. Frank 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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid