Author: mgrigorov
Date: Sun Dec 19 10:29:57 2010
New Revision: 1050791

URL: http://svn.apache.org/viewvc?rev=1050791&view=rev
Log:
WICKET-3262 MountedMapper defined in WicketApplication doesn't accept 
/mount/paramval0/paramval1

Remove WicketApplication's constructor and replace it with 
WicketApplication#init().
This way users will not confuse to add configuration settings in the 
constructor which will be later overridden in Application#internalInit()

Modified:
    
wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java

Modified: 
wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java?rev=1050791&r1=1050790&r2=1050791&view=diff
==============================================================================
--- 
wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java
 (original)
+++ 
wicket/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/WicketApplication.java
 Sun Dec 19 10:29:57 2010
@@ -8,20 +8,24 @@ import org.apache.wicket.protocol.http.W
  * @see ${package}.Start#main(String[])
  */
 public class WicketApplication extends WebApplication
-{    
-    /**
-     * Constructor
-     */
-       public WicketApplication()
-       {
-       }
-       
+{      
        /**
         * @see org.apache.wicket.Application#getHomePage()
         */
+       @Override
        public Class<HomePage> getHomePage()
        {
                return HomePage.class;
        }
 
+       /**
+        * @see org.apache.wicket.Application#init()
+        */
+       @Override
+       public void init()
+       {
+               super.init();
+
+               // add your configuration here
+       }
 }


Reply via email to