Author: ivaynberg
Date: Sun Apr 26 21:46:19 2009
New Revision: 768804

URL: http://svn.apache.org/viewvc?rev=768804&view=rev
Log:
return quickstart to its previous glory

Added:
    wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/.amateras
    
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.html
   (with props)
    
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.java
   (with props)
    
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartPage.java
   (with props)
    
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartSession.java
   (with props)
Modified:
    
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartApplication.java

Added: wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/.amateras
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/.amateras?rev=768804&view=auto
==============================================================================
--- wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/.amateras (added)
+++ wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/.amateras Sun Apr 26 
21:46:19 2009
@@ -0,0 +1,12 @@
+#EclipseHTMLEditor configuration file
+#Thu Nov 27 10:56:14 PST 2008
+validateDTD=false
+javaScriptCompleters=
+useDTD=true
+validateJSP=false
+validateXML=false
+validateJS=false
+removeMarkers=true
+root=/
+validateHTML=false
+javaScripts=

Added: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.html
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.html?rev=768804&view=auto
==============================================================================
--- 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.html
 (added)
+++ 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.html
 Sun Apr 26 21:46:19 2009
@@ -0,0 +1,10 @@
+<html>
+    <head>
+        <title>QuickStart</title>
+    </head>
+    <body>
+        <h1>QuickStart</h1>
+        <p>This is your first Wicket application.</p>
+    </body>
+</html>
+

Propchange: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.java?rev=768804&view=auto
==============================================================================
--- 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.java
 (added)
+++ 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.java
 Sun Apr 26 21:46:19 2009
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.quickstart;
+
+import org.apache.wicket.PageParameters;
+
+/**
+ * Basic bookmarkable index page.
+ * 
+ * NOTE: You can get session properties from QuickStartSession via 
getQuickStartSession()
+ */
+public class Index extends QuickStartPage
+{
+
+       /**
+        * Constructor that is invoked when page is invoked without a session.
+        * 
+        * @param parameters
+        *            Page parameters
+        */
+       public Index(final PageParameters parameters)
+       {
+       }
+}

Propchange: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/Index.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartApplication.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartApplication.java?rev=768804&r1=768803&r2=768804&view=diff
==============================================================================
--- 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartApplication.java
 (original)
+++ 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartApplication.java
 Sun Apr 26 21:46:19 2009
@@ -16,6 +16,9 @@
  */
 package org.apache.wicket.quickstart;
 
+import org.apache.wicket.Request;
+import org.apache.wicket.Response;
+import org.apache.wicket.Session;
 import org.apache.wicket.protocol.http.WebApplication;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -44,7 +47,7 @@
         */
        public Class getHomePage()
        {
-               return TestPage.class;
+               return Index.class;
        }
 
        /**
@@ -54,4 +57,13 @@
        {
                // put any configuration here
        }
+
+       /**
+        * @see 
org.apache.wicket.protocol.http.WebApplication#newSession(org.apache.wicket.Request,
+        *      org.apache.wicket.Response)
+        */
+       public Session newSession(Request request, Response response)
+       {
+               return new QuickStartSession(this, request);
+       }
 }
\ No newline at end of file

Added: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartPage.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartPage.java?rev=768804&view=auto
==============================================================================
--- 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartPage.java
 (added)
+++ 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartPage.java
 Sun Apr 26 21:46:19 2009
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.quickstart;
+
+import org.apache.wicket.markup.html.WebPage;
+
+/**
+ * Base class for all pages in the QuickStart application. Any page which 
subclasses this page can
+ * get session properties from QuickStartSession via getQuickStartSession().
+ */
+public abstract class QuickStartPage extends WebPage
+{
+
+       /**
+        * Get downcast session object for easy access by subclasses
+        * 
+        * @return The session
+        */
+       public QuickStartSession getQuickStartSession()
+       {
+               return (QuickStartSession)getSession();
+       }
+}
\ No newline at end of file

Propchange: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartPage.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartSession.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartSession.java?rev=768804&view=auto
==============================================================================
--- 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartSession.java
 (added)
+++ 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartSession.java
 Sun Apr 26 21:46:19 2009
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.quickstart;
+
+import org.apache.wicket.Request;
+import org.apache.wicket.protocol.http.WebApplication;
+import org.apache.wicket.protocol.http.WebSession;
+
+/**
+ * Subclass of WebSession for QuickStartApplication to allow easy and typesafe 
access to session
+ * properties.
+ * 
+ * @author Jonathan Locke
+ */
+public final class QuickStartSession extends WebSession
+{
+       // TODO Add any session properties here
+
+       /**
+        * Constructor
+        * 
+        * @param application
+        *            The application
+        * @param request
+        *            The request
+        * @param response
+        *            The response
+        */
+       protected QuickStartSession(final WebApplication application, final 
Request request)
+       {
+               super(application, request);
+       }
+}

Propchange: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-quickstart/src/main/java/org/apache/wicket/quickstart/QuickStartSession.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain


Reply via email to