Author: hlship
Date: Mon Feb 25 18:19:46 2008
New Revision: 631070
URL: http://svn.apache.org/viewvc?rev=631070&view=rev
Log:
TAPESTRY-2197: Support for "index" pages in packages
Added:
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/java/pages/Index.java
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/webapp/Index.tml
Removed:
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/java/pages/Start.java
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/webapp/Start.tml
Modified:
tapestry/tapestry5/trunk/quickstart/src/main/resources/META-INF/archetype.xml
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/resources/log4j.properties
Modified:
tapestry/tapestry5/trunk/quickstart/src/main/resources/META-INF/archetype.xml
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/src/main/resources/META-INF/archetype.xml?rev=631070&r1=631069&r2=631070&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/quickstart/src/main/resources/META-INF/archetype.xml
(original)
+++
tapestry/tapestry5/trunk/quickstart/src/main/resources/META-INF/archetype.xml
Mon Feb 25 18:19:46 2008
@@ -1,6 +1,6 @@
<archetype>
<!--
- Copyright 2007 The Apache Software Foundation
+ Copyright 2007, 2008 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -20,14 +20,14 @@
<resource>.classpath</resource>
<resource>.project</resource>
<resource>src/main/webapp/WEB-INF/web.xml</resource>
- <resource>src/main/webapp/Start.tml</resource>
+ <resource>src/main/webapp/Index.tml</resource>
<resource>src/main/webapp/favicon.ico</resource>
<resource>src/main/resources/log4j.properties</resource>
<resource>src/test/java/PLACEHOLDER</resource>
<resource>src/test/resources/PLACEHOLDER</resource>
</resources>
<sources>
- <source>src/main/java/pages/Start.java</source>
+ <source>src/main/java/pages/Index.java</source>
<source>src/main/java/services/AppModule.java</source>
</sources>
</archetype>
Added:
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/java/pages/Index.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/java/pages/Index.java?rev=631070&view=auto
==============================================================================
---
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/java/pages/Index.java
(added)
+++
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/java/pages/Index.java
Mon Feb 25 18:19:46 2008
@@ -0,0 +1,14 @@
+package ${packageName}.pages;
+
+import java.util.Date;
+
+/**
+ * Start page of application ${artifactId}.
+ */
+public class Index
+{
+ public Date getCurrentTime()
+ {
+ return new Date();
+ }
+}
\ No newline at end of file
Modified:
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/resources/log4j.properties
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/resources/log4j.properties?rev=631070&r1=631069&r2=631070&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/resources/log4j.properties
(original)
+++
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/resources/log4j.properties
Mon Feb 25 18:19:46 2008
@@ -24,4 +24,4 @@
# class is loaded. Turning on debug mode for a page will enable detailed
output about
# the contruction of the page, including the runtime code modifications that
occur. Verbose
# mode is rarely used, as it output voluminous details about the rendering of
the page.
-# log4j.category.${packageName}.pages.Start=debug
+# log4j.category.${packageName}.pages.Index=debug
Added:
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/webapp/Index.tml
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/webapp/Index.tml?rev=631070&view=auto
==============================================================================
---
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/webapp/Index.tml
(added)
+++
tapestry/tapestry5/trunk/quickstart/src/main/resources/archetype-resources/src/main/webapp/Index.tml
Mon Feb 25 18:19:46 2008
@@ -0,0 +1,18 @@
+<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
+ <head>
+ <title>${artifactId} Start Page</title>
+ </head>
+ <body>
+ <h1>${artifactId} Start Page</h1>
+
+ <p> This is the start page for this application, a good place to start
your modifications.
+ Just to prove this is live: </p>
+
+ <p> The current time is: ${currentTime}. </p>
+
+
+ <p>
+ [<t:pagelink t:page="Start">refresh</t:pagelink>]
+ </p>
+ </body>
+</html>