[CONF] Apache Tapestry Getting Started
{display-footnotes} Bob Harner edited the page: Getting Started Comment: Removed garbled footnotes, made image bigger ... Once you have Maven installed, execute the following command: Code Blocknoformat mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org Maven will prompt you for the archetype to create (Tapestry 5 Quickstart Project) and the exact version number (5.3.7, at the time of writing). It also asks you for a group id, an artifact id, and a version number. You can see this in the following transcript: No Format $ mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom [INFO] [INFO] maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom [INFO] [INFO] --- maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: http://tapestry.apache.org - org.apache.tapestry:quickstart (Tapestry 5 Quickstart Project) 2: http://tapestry.apache.org - org.apache.tapestry:tapestry-archetype (Tapestry 4.1.6 Archetype) Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1 Choose version: 1: 5.0.19 2: 5.1.0.5 3: 5.2.6 4: 5.3.7 Choose a number: 4: 4 Downloading: http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.7.jar Downloading: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.7.jar Downloaded: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.7.jar (64 KB at 69.3 KB/sec) Downloading: http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.7.pom Downloading: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.7.pom Downloaded: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.7.pom (400 B at 1.0 KB/sec) Define value for property 'groupId': : com.example Define value for property 'artifactId': : newapp Define value for property 'version': 1.0-SNAPSHOT: : Define value for property 'package':
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Massimo Lusetti Changes (9) ... {code} Maven will prompt you for the archetype to create (Tapestry 5 Quickstart Project) and the exact version number (5.3.67, at the time of writing). It also asks you for a group id, an artifact id, and a version number. You can see this in the following transcript: {noformat} ... 2: 5.1.0.5 3: 5.2.6 4: 5.3.67 Choose a number: 4: 4 Downloading: http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.37.jar Downloading: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.37.jar Downloaded: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.37.jar (64 KB at 69.3 KB/sec) Downloading: http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.37.pom Downloading: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.37.pom Downloaded: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.6/quickstart-5.3.37.pom (400 B at 1.0 KB/sec) Define value for property groupId: : com.example Define value for property artifactId: : newapp ... Y: : [INFO] [INFO] Using following parameters for creating project from Archetype: quickstart:5.3.67 [INFO] [INFO] Parameter: groupId, Value: com.example ... Full Content Related Articles Page: Introduction Page: Principles Page: Getting Started Page: Tapestry Tutorial Page: Tapestry for JSF Users Getting started with Tapestry is easy, and you have lots of ways to begin: watch a video, browse the source code of a working demo app, create a skeleton app using Maven, or step through the tutorial. Watch a short video For a fast-paced introduction, watch Mark W. Shead's 10 Minute Demo. This video shows how to set up a simple Tapestry application, complete with form validation, Hibernate-based persistence, and Ajax. The video provides a preview of the development speed and productivity that experienced Tapestry users enjoy. Play with a working demo app You can also play with Tapestry via our live demonstration applications. To start, have a look at the Hotel Booking Demo. The source code is provided so you can download and play with it. Create your first Tapestry project The easiest way to start a new app is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command: mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org Maven will prompt you for the archetype to create ("Tapestry 5 Quickstart Project") and the exact version number ("5.3.7", at the time of writing). It also asks you for a group id, an artifact id, and a version number. You can see this in the following transcript: $ mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom [INFO] [INFO] maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom [INFO] [INFO] --- maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Bob Harner Comment: Updated available archetype versions shown in example Changes (6) ... 2: 5.1.0.5 3: 5.2.6 4: 5.3.6 5: 5.3.1 6: 5.3.2 7: 5.3.3 Choose a number: 7: 7 4 Downloading: http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.3/quickstart-5.3.3.jar Downloading: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.3/quickstart-5.3.3.jar ... [INFO] [INFO] Total time: 31.062s [INFO] Finished at: Tue Nov 22 11:11:14 PST 2011 [INFO] Finished at: Fri Mar 1 11:11:14 PST 2013 [INFO] Final Memory: 7M/81M [INFO] ~/workspaces/github $ {noformat} ... Full Content Related Articles Page: Getting Started Page: Introduction Page: Principles Page: Tapestry Tutorial Page: Tapestry for JSF Users Getting started with Tapestry is easy, and you have lots of ways to begin: watch a video, browse the source code of a working demo app, create a skeleton app using Maven, or step through the tutorial. Watch a short video For a fast-paced introduction, watch Mark W. Shead's 10 Minute Demo. This video shows how to set up a simple Tapestry application, complete with form validation, Hibernate-based persistence, and Ajax. The video provides a preview of the development speed and productivity that experienced Tapestry users enjoy. Play with a working demo app You can also play with Tapestry via our live demonstration applications. To start, have a look at the Hotel Booking Demo. The source code is provided so you can download and play with it. Create your first Tapestry project The easiest way to start a new app is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command: mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org Maven will prompt you for the archetype to create ("Tapestry 5 Quickstart Project") and the exact version number ("5.3.3", at the time of writing). It also asks you for a group id, an artifact id, and a version number. You can see this in the following transcript: $ mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom [INFO] [INFO] maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom [INFO] [INFO] --- maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: http://tapestry.apache.org - org.apache.tapestry:quickstart (Tapestry 5 Quickstart Project) 2: http://tapestry.apache.org - org.apache.tapestry:tapestry-archetype (Tapestry 4.1.6 Archetype) Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1 Choose version: 1: 5.0.19 2: 5.1.0.5 3: 5.2.6 4: 5.3.6 Choose a number: 7: 4 Downloading: http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.3/quickstart-5.3.3.jar Downloading: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.3/quickstart-5.3.3.jar Downloaded: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.3/quickstart-5.3.3.jar (64 KB at 69.3 KB/sec) Downloading:
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Massimo Lusetti Changes (10) ... The easiest way to start a new app is to use [Apache Maven|http://maven.apache.org] to create your initial project; Maven can use an _archetype_ (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command:{{mvn archetype:generate \-DarchetypeCatalog=}}{{[http://tapestry.apache.org]}}. Maven will prompt you for the archetype to create (Tapestry 5 Quickstart Project) and the exact version number (5.3.12, at the time of writing). It also asks you for a group id, an artifact id, and a version number. You can see this in the following transcript: {noformat} ... 4: 5.3 5: 5.3.1 6: 5.3.2 Choose a number: 5: 5 6: 6 Downloading: http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.jar http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.2/quickstart-5.3.2.jar Downloading: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.jar http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.2/quickstart-5.3.2.jar Downloaded: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.jar http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.2/quickstart-5.3.2.jar (64 KB at 69.3 KB/sec) Downloading: http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.pom http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.2/quickstart-5.3.2.pom Downloading: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.pom http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.2/quickstart-5.3.2.pom Downloaded: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.pom http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.2/quickstart-5.3.2.pom (400 B at 1.0 KB/sec) Define value for property groupId: : com.example Define value for property artifactId: : newapp ... Y: : [INFO] [INFO] Using following parameters for creating project from Archetype: quickstart:5.3.12 [INFO] [INFO] Parameter: groupId, Value: com.example ... Full Content Related Articles Page: Introduction Page: Tapestry Tutorial Page: Principles Page: Getting Started Getting started with Tapestry is easy, and you have lots of ways to begin your adventure: watch a video, browse the source code of a working demo app, create a skeleton app using Maven, or step through the tutorial. Watch a short video For a fast-paced introduction, watch Mark W. Shead's 10 Minute Demo. This video shows how to set up a simple Tapestry application, complete with form validation, Hibernate-based persistence, and Ajax. The video provides a preview of the development speed and productivity that experienced Tapestry users enjoy. Play with a working demo app You can also play with Tapestry via our live demonstration applications. To start, have a look at the Hotel Booking Demo. The source code is provided so you can download and play with it. Create your first Tapestry project The easiest way to start a new app is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command:mvn archetype:generate DarchetypeCatalog=http://tapestry.apache.org. Maven will prompt you for the archetype to create ("Tapestry 5 Quickstart Project") and the exact version number ("5.3.2", at the time of writing). It also asks you for a group id, an artifact id, and a version number. You can see this in the following transcript: $ mvn archetype:generate
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Massimo Lusetti Changes (10) ... The easiest way to start a new app is to use [Apache Maven|http://maven.apache.org] to create your initial project; Maven can use an _archetype_ (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command:{{mvn archetype:generate \-DarchetypeCatalog=}}{{[http://tapestry.apache.org]}}. Maven will prompt you for the archetype to create (Tapestry 5 Quickstart Project) and the exact version number (5.3.1, at the time of writing). It also asks you for a group id, an artifact id, and a version number. You can see this in the following transcript: {noformat} ... 3: 5.2.6 4: 5.3 5: 5.3.1 Choose a number: 4: 4 5: 5 Downloading: http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.jar Downloading: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.jar Downloaded: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.jar (64 KB at 69.3 KB/sec) Downloading: http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.pom Downloading: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.pom Downloaded: http://repo1.maven.org/maven2/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.pom (400 B at 1.0 KB/sec) Define value for property groupId: : com.example Define value for property artifactId: : newapp ... Y: : [INFO] [INFO] Using following parameters for creating project from Archetype: quickstart:5.3.1 [INFO] [INFO] Parameter: groupId, Value: com.example ... Full Content Related Articles Page: Introduction Page: Principles Page: Tapestry Tutorial Page: Getting Started Getting started with Tapestry is easy, and you have lots of ways to begin your adventure: watch a video, browse the source code of a working demo app, create a skeleton app using Maven, or step through the tutorial. Watch a short video For a fast-paced introduction, watch Mark W. Shead's 10 Minute Demo. This video shows how to set up a simple Tapestry application, complete with form validation, Hibernate-based persistence, and Ajax. The video provides a preview of the development speed and productivity that experienced Tapestry users enjoy. Play with a working demo app You can also play with Tapestry via our live demonstration applications. To start, have a look at the Hotel Booking Demo. The source code is provided so you can download and play with it. Create your first Tapestry project The easiest way to start a new app is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command:mvn archetype:generate DarchetypeCatalog=http://tapestry.apache.org. Maven will prompt you for the archetype to create ("Tapestry 5 Quickstart Project") and the exact version number ("5.3.1", at the time of writing). It also asks you for a group id, an artifact id, and a version number. You can see this in the following transcript: $ mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom [INFO] [INFO] maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom [INFO] [INFO] --- maven-archetype-plugin:2.1:generate (default-cli) @
[CONF] Apache Tapestry Getting Started
Getting Started File attached by Howard M. Lewis Ship getting-started.png (75 kB image/png) Change Notification Preferences View Attachments
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Howard M. Lewis Ship Changes (4) {float:right|background="" {contentbylabel:title=Related Articles|showLabels=false|showSpace=false|labels=new-users} {float} Getting started with Tapestry is easy, and you have lots of ways to begin your adventure: watch a video, browse the source code of a working demo app, create a skeleton app using Maven, or step through the tutorial. ... The easiest way to start a new app is to use [Apache Maven|http://maven.apache.org] to create your initial project; Maven can use an _archetype_ (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command:{{mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org}}. \-DarchetypeCatalog=}}{{[http://tapestry.apache.org]}}. Maven will prompt you for the archetype to create (Tapestry 5 Quickstart Project) and the exact version number (5.3, at the time of writing). It also asks you for a group id, an artifact id, and a version number. You can see this in the following transcript: {noformat} $ mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Maven Stub Project (No POM) 1 [INFO] [INFO] [INFO] maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom [INFO] [INFO] maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom [INFO] [INFO] --- maven-archetype-plugin:2.1:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode ... 2: http://tapestry.apache.org - org.apache.tapestry:tapestry-archetype (Tapestry 4.1.6 Archetype) Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1 Choose version: 1: 5.0.19 2: 5.1.0.5 ... Define value for property groupId: : com.example Define value for property artifactId: : newapp Define value for property version: 1.0-SNAPSHOT: : Define value for property package: com.example: : com.example.newapp Confirm properties configuration: ... version: 1.0-SNAPSHOT package: com.example.newapp Y: : [INFO] [INFO] Using following parameters for creating project from Archetype: quickstart:5.3 ... !getting-started.png|align=center,thumbnail! The application consists of three pages sharing a common look and feel. The initial page, Index, allows you to perform some basic operations. You can also load the newly-created project it into any IDE and start coding. See the next section on where to find the different components of the application. h2. Exploring the generated project ... A Tapestry application is composed of pages, each page consisting of one template file and one Java class. Tapestry page templates have the {{.tml}} extension and are found in src/main/*resources*/com/example/newapp/*pages{*}{footnote}That is, in the {{com.example.newapp.pages}} package.{footnote} . Templates are essentially HTML with some special markup to link the template to the Java class and to reference ready-made components you can use to speed up your development. Java classes are found in src/main/*java*/com/example/newapp/*pages* and their name matches their template name ({{Index.tml}} \- {{Index.java}}). ... h2. Obtain Help Tapestry has an active user mailing list on which you can find a lot of valuable support. You can subscribe by sending e-mail to [mailto:users-subscr...@tapestry.apache.org] or look for an answer in the [archives|http://markmail.org/search/list:org.apache.tapestry.users]. [More Options|Mailing Lists]... Having trouble? Try our [TAPESTRY:Frequently Asked Questions]. ... Full Content Related Articles Page: Introduction Page: Principles
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Bob Harner Comment: Rewrote the intro paragraphs for better flow and clarity Changes (6) ... {float} h2. See it live \! Getting started with Tapestry is easy, and you have lots of ways to begin your adventure: watch a video, browse the source code of a working demo app, create a skeleton app using Maven, or step through the tutorial. For introduction, watch a [Tapestry 5 – 10 Minute Demo|http://blog.markwshead.com/900/tapestry-5-10-minute-demo/] (by Mark W Shead). You can also play with Tapestry via our live demonstration applications. To start you can have a look at the [Hotel Booking Demo|http://tapestry.zones.apache.org:8180/tapestry5-hotel-booking/] that has been developed by contributors and committers. The whole source code is available at [github|http://github.com/ccordenier/tapestry5-hotel-booking] so you can download and play with it. h2. Watch a short video For a fast-paced introduction, watch Mark W. Sheads [10 Minute Demo|http://blog.markwshead.com/900/tapestry-5-10-minute-demo/]. This video shows how to set up a simple Tapestry application, complete with form validation, Hibernate-based persistence, and Ajax. The video provides a preview of the development speed and productivity that experienced Tapestry users enjoy. h2. Play with a working demo app You can also play with Tapestry via our live demonstration applications. To start, have a look at the [Hotel Booking Demo|http://tapestry.zones.apache.org:8180/tapestry5-hotel-booking/]. The [source code|http://github.com/ccordenier/tapestry5-hotel-booking] is provided so you can download and play with it. h2. Create your first Tapestry project The easiest way to get started start a new app is to use [Apache Maven|http://maven.apache.org] to create your initial project; Maven can use an _archetype_ (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command (copy and paste it as-is){footnote}If you prefer, just {{mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org}} will work as well, and you will be prompted for the other details interactively.{footnote}: ... Full Content Related Articles Page: Principles Page: Introduction Page: Tapestry Tutorial Page: Getting Started Getting started with Tapestry is easy, and you have lots of ways to begin your adventure: watch a video, browse the source code of a working demo app, create a skeleton app using Maven, or step through the tutorial. Watch a short video For a fast-paced introduction, watch Mark W. Shead's 10 Minute Demo. This video shows how to set up a simple Tapestry application, complete with form validation, Hibernate-based persistence, and Ajax. The video provides a preview of the development speed and productivity that experienced Tapestry users enjoy. Play with a working demo app You can also play with Tapestry via our live demonstration applications. To start, have a look at the Hotel Booking Demo. The source code is provided so you can download and play with it. Create your first Tapestry project The easiest way to start a new app is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command (copy and paste it as-is) 1 : mvn DarchetypeVersion=5.2.4 Darchetype.interactive=false DgroupId=com.example DarchetypeArtifactId=quickstart Dversion=1.0-SNAPSHOT DarchetypeGroupId=org.apache.tapestry Dpackage=com.example.newapp DartifactId=newapp -batch-mode DarchetypeRepository=http://tapestry.apache.org archetype:generate Maven will (after performing a large number of one-time downloads) create a skeleton project ready to run. Because we specified an artifactId of "newapp", the project is created in the newapp directory. (Note: if you get
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Kalle Korhonen Changes (1) ... h2. See it live \! For introduction, watch a [Tapestry 5 – 10 Minute Demo (by Mark W Shead)|http://blog.markwshead.com/900/tapestry-5-10-minute-demo/]. You can also play with Tapestry via our live demonstration applications. To start you can have a look at the [Hotel Booking Demo|http://tapestry.zones.apache.org:8180/tapestry5-hotel-booking/] that has been developed by contributors and committers. The whole source code is available at [github|http://github.com/ccordenier/tapestry5-hotel-booking] so you can download and play with it. h2. Create your first Tapestry project ... Full Content Related Articles Page: Principles Page: Introduction Page: Tapestry Tutorial Page: Getting Started See it live For introduction, watch a Tapestry 5 – 10 Minute Demo (by Mark W Shead). You can also play with Tapestry via our live demonstration applications. To start you can have a look at the Hotel Booking Demo that has been developed by contributors and committers. The whole source code is available at github so you can download and play with it. Create your first Tapestry project The easiest way to get started is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command (copy and paste it as-is) 1 : mvn DarchetypeVersion=5.2.4 Darchetype.interactive=false DgroupId=com.example DarchetypeArtifactId=quickstart Dversion=1.0-SNAPSHOT DarchetypeGroupId=org.apache.tapestry Dpackage=com.example.newapp DartifactId=newapp -batch-mode DarchetypeRepository=http://tapestry.apache.org archetype:generate Maven will (after performing a large number of one-time downloads) create a skeleton project ready to run. Because we specified an artifactId of "newapp", the project is created in the newapp directory. (Note: if you get "Unable to get resource" warnings at this stage, you may be behind a firewall which blocks outbound HTTP requests to Maven repositories.) To run the skeleton application, change to the newapp directory and execute: mvn jetty:run After some more one-time downloads you can open your browser to http://localhost:8080 to see the application running. You can also load the newly-created project it into any IDE and start coding. See the next section on where to find the different components of the application. Exploring the skeleton project A Tapestry application is composed of pages, each page consisting of one template file and one Java class. Tapestry page templates have the .tml extension and are found in src/main/webapp. Templates are essential HTML with some special markup to link the template to the Java class and to reference ready-made components you can use to speed up your development. Java classes are found in src/main/java/com/example/newapp/pages 2 and their name matches their template name (Index.tml Index.java). In the skeleton project, most of the HTML is not found on the pages themselves but in a Layout component which acts as a global template for the whole site. Java classes for components live in src/main/java/com/example/newapp/components and component templates go in src/main/resources/com/example/newapp/components What's next? To deepen your understanding, step through the Tapestry Tutorial which goes into much more detail about setting up your project, as well as loading it into Eclipse ... then continues on to teach you more about Tapestry. Be sure to read about the core Tapestry Principles, and browse the extensive User Guide. Obtain Help Tapestry has an active user mailing list on which you can find a lot of valuable support. You can subscribe by sending e-mail to users-subscr...@tapestry.apache.org or look for an answer in the archives. More Options... Having trouble? Try our Frequently Asked Questions. Footnotes Reference Notes
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Kalle Korhonen Changes (1) ... h2. See it live \! For introduction, watch a [Tapestry 5 – 10 Minute Demo (by Demo|http://blog.markwshead.com/900/tapestry-5-10-minute-demo/](by Mark W Shead)|http://blog.markwshead.com/900/tapestry-5-10-minute-demo/]. Shead). You can also play with Tapestry via our live demonstration applications. To start you can have a look at the [Hotel Booking Demo|http://tapestry.zones.apache.org:8180/tapestry5-hotel-booking/] that has been developed by contributors and committers. The whole source code is available at [github|http://github.com/ccordenier/tapestry5-hotel-booking] so you can download and play with it. h2. Create your first Tapestry project ... Full Content Related Articles Page: Principles Page: Introduction Page: Tapestry Tutorial Page: Getting Started See it live For introduction, watch a Tapestry 5 – 10 Minute Demo(by Mark W Shead). You can also play with Tapestry via our live demonstration applications. To start you can have a look at the Hotel Booking Demo that has been developed by contributors and committers. The whole source code is available at github so you can download and play with it. Create your first Tapestry project The easiest way to get started is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command (copy and paste it as-is) 1 : mvn DarchetypeVersion=5.2.4 Darchetype.interactive=false DgroupId=com.example DarchetypeArtifactId=quickstart Dversion=1.0-SNAPSHOT DarchetypeGroupId=org.apache.tapestry Dpackage=com.example.newapp DartifactId=newapp -batch-mode DarchetypeRepository=http://tapestry.apache.org archetype:generate Maven will (after performing a large number of one-time downloads) create a skeleton project ready to run. Because we specified an artifactId of "newapp", the project is created in the newapp directory. (Note: if you get "Unable to get resource" warnings at this stage, you may be behind a firewall which blocks outbound HTTP requests to Maven repositories.) To run the skeleton application, change to the newapp directory and execute: mvn jetty:run After some more one-time downloads you can open your browser to http://localhost:8080 to see the application running. You can also load the newly-created project it into any IDE and start coding. See the next section on where to find the different components of the application. Exploring the skeleton project A Tapestry application is composed of pages, each page consisting of one template file and one Java class. Tapestry page templates have the .tml extension and are found in src/main/webapp. Templates are essential HTML with some special markup to link the template to the Java class and to reference ready-made components you can use to speed up your development. Java classes are found in src/main/java/com/example/newapp/pages 2 and their name matches their template name (Index.tml Index.java). In the skeleton project, most of the HTML is not found on the pages themselves but in a Layout component which acts as a global template for the whole site. Java classes for components live in src/main/java/com/example/newapp/components and component templates go in src/main/resources/com/example/newapp/components What's next? To deepen your understanding, step through the Tapestry Tutorial which goes into much more detail about setting up your project, as well as loading it into Eclipse ... then continues on to teach you more about Tapestry. Be sure to read about the core Tapestry Principles, and browse the extensive User Guide. Obtain Help Tapestry has an active user mailing list on which you can find a lot of valuable support. You can subscribe by sending e-mail to users-subscr...@tapestry.apache.org or look for an answer in the archives. More Options... Having trouble? Try our Frequently Asked Questions. Footnotes
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Kalle Korhonen Changes (0) ... h2. See it live \! For introduction, watch a [Tapestry 5 – 10 Minute Demo|http://blog.markwshead.com/900/tapestry-5-10-minute-demo/] (by Mark W Shead). You can also play with Tapestry via our live demonstration applications. To start you can have a look at the [Hotel Booking Demo|http://tapestry.zones.apache.org:8180/tapestry5-hotel-booking/] that has been developed by contributors and committers. The whole source code is available at [github|http://github.com/ccordenier/tapestry5-hotel-booking] so you can download and play with it. h2. Create your first Tapestry project ... Full Content Related Articles Page: Principles Page: Introduction Page: Tapestry Tutorial Page: Getting Started See it live For introduction, watch a Tapestry 5 – 10 Minute Demo (by Mark W Shead). You can also play with Tapestry via our live demonstration applications. To start you can have a look at the Hotel Booking Demo that has been developed by contributors and committers. The whole source code is available at github so you can download and play with it. Create your first Tapestry project The easiest way to get started is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. Once you have Maven installed, execute the following command (copy and paste it as-is) 1 : mvn DarchetypeVersion=5.2.4 Darchetype.interactive=false DgroupId=com.example DarchetypeArtifactId=quickstart Dversion=1.0-SNAPSHOT DarchetypeGroupId=org.apache.tapestry Dpackage=com.example.newapp DartifactId=newapp -batch-mode DarchetypeRepository=http://tapestry.apache.org archetype:generate Maven will (after performing a large number of one-time downloads) create a skeleton project ready to run. Because we specified an artifactId of "newapp", the project is created in the newapp directory. (Note: if you get "Unable to get resource" warnings at this stage, you may be behind a firewall which blocks outbound HTTP requests to Maven repositories.) To run the skeleton application, change to the newapp directory and execute: mvn jetty:run After some more one-time downloads you can open your browser to http://localhost:8080 to see the application running. You can also load the newly-created project it into any IDE and start coding. See the next section on where to find the different components of the application. Exploring the skeleton project A Tapestry application is composed of pages, each page consisting of one template file and one Java class. Tapestry page templates have the .tml extension and are found in src/main/webapp. Templates are essential HTML with some special markup to link the template to the Java class and to reference ready-made components you can use to speed up your development. Java classes are found in src/main/java/com/example/newapp/pages 2 and their name matches their template name (Index.tml Index.java). In the skeleton project, most of the HTML is not found on the pages themselves but in a Layout component which acts as a global template for the whole site. Java classes for components live in src/main/java/com/example/newapp/components and component templates go in src/main/resources/com/example/newapp/components What's next? To deepen your understanding, step through the Tapestry Tutorial which goes into much more detail about setting up your project, as well as loading it into Eclipse ... then continues on to teach you more about Tapestry. Be sure to read about the core Tapestry Principles, and browse the extensive User Guide. Obtain Help Tapestry has an active user mailing list on which you can find a lot of valuable support. You can subscribe by sending e-mail to users-subscr...@tapestry.apache.org or look for an answer in the archives. More Options... Having trouble? Try our Frequently Asked Questions. Footnotes Reference Notes
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Bob Harner Comment: Added "Related Articles" box (using "new-users" label) Changes (1) {float:right|background="" {contentbylabel:title=Related Articles|showLabels=false|showSpace=false|labels=new-users} {float} h2. See it live \! ... Full Content Related Articles Getting Started Tapestry Tutorial Introduction See it live You can play with Tapestry via our live demonstration applications. To start you can have a look at the Hotel Booking Demo that has been developed by contributors and committers. The whole source code is available at github so you can download and play with it. Create your first Tapestry project The easiest way to get started is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. One you have Maven installed, execute the following command (copy and paste it as-is) 1 : mvn DarchetypeVersion=5.2.4 Darchetype.interactive=false DgroupId=com.example DarchetypeArtifactId=quickstart Dversion=1.0-SNAPSHOT DarchetypeGroupId=org.apache.tapestry Dpackage=com.example.newapp DartifactId=newapp -batch-mode DarchetypeRepository=http://tapestry.apache.org archetype:generate Maven will (after performing a large number of one-time downloads) create a skeleton project ready to run. Because we specified an artifactId of "newapp", the project is created in the newapp directory. To run the skeleton application, change to the newapp directory and execute: mvn jetty:run After some more one-time downloads you can open your browser to http://localhost:8080 to see the application running. You can also load the newly-created project it into any IDE and start coding. See the next section on where to find the different components of the application. Exploring the test project A Tapestry application is composed of pages, each page consisting of one template file and one Java class. Tapestry page templates have the .tml extension and are found in src/main/webapp. Templates are essential HTML with some special markup to link the template to the Java class and to reference ready-made components you can use to speed up your development. Java classes are found in src/main/java/com/example/newapp/pages 2 and their name matches their template name (Index.tml Index.java). In the test project, most of the HTML is not found on the pages themselves but in a Layout component which acts as a global template for the whole site. Java classes for components live in src/main/java/com/example/newapp/components and component templates go in src/main/resources/com/example/newapp/components More For more information on this, try the Tapestry Tutorial which goes into more detail about setting up your project, as well as loading it into Eclipse ... then continues on to teach you more about Tapestry. Then, learn more about Tapestry Philosophy and then checkout our full Documentation page on which you will find a lot of resources written by committers and contributors. Obtain Help Tapestry has an active user mailing list on which you can find a lot of valuable support. You can subscribe users-subscr...@tapestry.apache.org or look for an answer in the archives Having trouble? Try our Frequently Asked Questions. Footnotes Reference Notes 1 If you prefer, just mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org will work as well, and you will be prompted for the other details interactively. 2 That is, in the com.example.newapp.pages package. Change Notification Preferences View Online | View Changes
[CONF] Apache Tapestry Getting Started
Getting Started Page moved by Howard M. Lewis Ship From: Apache Tapestry Index To: Apache Tapestry Children moved Principles Change Notification Preferences View Online
[CONF] Apache Tapestry Getting Started
Getting Started Page moved by Howard M. Lewis Ship From: Apache Tapestry To: Apache Tapestry Documentation Children moved Principles Change Notification Preferences View Online
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Javier Molina Comment: Cleaned up maven instructions to give the reader a copy-paste ready command. Also changed instructions to direct the reader to run the application first of all, then open the IDE Changes (20) ... The easiest way to get started is to use [Apache Maven|http://maven.apache.org] to create your initial project; Maven can use an _archetype_ (a kind of project template) to create a bare-bones Tapestry application for you. One you have Maven installed, execute the command (copy and paste it as-is) {noformat} mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org mvn -DarchetypeVersion=5.1.0.5 -Darchetype.interactinteractive=false -DgroupId=com.example -DarchetypeArtifactId=quickstart -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.tapestry -Dpackage=com.example.newapp -DartifactId=newapp --batch-mode -DarchetypeRepository=http://tapestry.apache.org archetype:generate {noformat} Maven will (after performing a large number of one-time downloads) ask you questions about how to create the new project, including a group id (like a package name) and an artifact id for your new project. Maven will (after performing a large number of one-time downloads) create a skeleton project ready to run. {noformat}$ mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org {noformat}$ [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: archetype. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [archetype:generate] (aggregator-style) [INFO] [INFO] Preparing archetype:generate [INFO] No goals needed for project - skipping [INFO] [archetype:generate {execution: default-cli}] [INFO] Generating project in Interactive Batch mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: http://tapestry.apache.org - quickstart (Tapestry 5.2.1-SNAPSHOT Quickstart Project) 2: http://tapestry.apache.org - tapestry-archetype (Tapestry 4.1.6 Archetype) Choose a number: : 1 Choose version: 1: 5.0.19 2: 5.1.0.5 3: 5.2.0 4: 5.2.1-SNAPSHOT Choose a number: : 3 Define value for property groupId: : com.example Define value for property artifactId: : newapp Define value for property version: 1.0-SNAPSHOT: Define value for property package: com.example: com.example.newapp Confirm properties configuration: groupId: com.example artifactId: newapp version: 1.0-SNAPSHOT package: com.example.newapp Y: [INFO] Archetype defined by properties [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 25 seconds 1 second [INFO] Finished at: Tue Aug 17 14:01:50 PDT Mon Nov 29 18:30:20 CET 2010 [INFO] Final Memory: 16M/81M 20M/213M [INFO] /tmp ... {noformat} Once it is created, you can load it into any IDE and start coding, or use {{mvn jetty:run{}}}{footnote}Jetty is a well-known, open-source, high-performance servlet container. Jetty starts up quickly, and implements the official Servlet specification very closely.{footnote}. Again, more one-time downloads, but then you can open your browser to [http://localhost:8080] to run the application. Once it is created, you can run {noformat} mvn jetty:run {noformat} and after some more one-time downloads you can open your browser to [http://localhost:8080] to see the application running. You can also load the newly-created project it into any IDE and start coding. See the next section on where to find the different components of the application. For more information on this, try the [Tapestry Tutorial|TAPESTRY:Tutorial] which goes into more detail about setting up your project, as well as loading it into Eclipse ... then continues on to teach you more about Tapestry. h2. Exploring the test project Tapestry page templates have the .tml extension and are found in src/main/webapp. They are basically HTML with some special markup tags. A Tapestry application is composed of pages, each page consisting of one template file and one Java class. Tapestry page
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Josh Canfield Changes (1) ... The easiest way to get started is to use [Apache Maven|http://maven.apache.org] to create your initial project; Maven can use an _archetype_ (a kind of project template) to create a bare-bones Tapestry application for you. One you have Maven installed, execute the command (copy and paste it as-is){footnote}If you prefer, just {{mvn archetype:generate -DarchetypeRepository=http://tapestry.apache.org archetype:generate}} -DarchetypeCatalog=http://tapestry.apache.org}} will wortk as well, and you will be prompted for the other details interactively.{footnote}: {noformat} ... Full Content See it live You can play with Tapestry via our live demonstration applications. To start you can have a look at the Hotel Booking that has been developed by contributors and committers. The whole source code is available at github so you can download and play with it. Create your first Tapestry project The easiest way to get started is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. One you have Maven installed, execute the command (copy and paste it as-is) 1 : mvn -DarchetypeVersion=5.2.4 -Darchetype.interactive=false -DgroupId=com.example -DarchetypeArtifactId=quickstart -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.tapestry -Dpackage=com.example.newapp -DartifactId=newapp --batch-mode -DarchetypeRepository=http://tapestry.apache.org archetype:generate Maven will (after performing a large number of one-time downloads) create a skeleton project ready to run. Because we specified an artifactId of "newapp", the project is created in the newapp directory. To run the skeleton application, change to the newapp directory and execute: mvn jetty:run After some more one-time downloads you can open your browser to http://localhost:8080 to see the application running. You can also load the newly-created project it into any IDE and start coding. See the next section on where to find the different components of the application. For more information on this, try the Tapestry Tutorial which goes into more detail about setting up your project, as well as loading it into Eclipse ... then continues on to teach you more about Tapestry. Exploring the test project A Tapestry application is composed of pages, each page consisting of one template file and one Java class. Tapestry page templates have the .tml extension and are found in src/main/webapp. Templates are essential HTML with some special markup to link the template to the Java class and to reference ready-made components you can use to speed up your development. Java classes are found in src/main/java/com/example/newapp/pages 2 and their name matches their template name (Index.tml - Index.java). In the test project, most of the HTML is not found on the pages themselves but in a Layout component which acts as a global template for the whole site. Java classes for components live in src/main/java/com/example/newapp/components and component templates go in src/main/resources/com/example/newapp/components More Learn more about Tapestry Philosophy and then checkout our full Documentation page on which you will find a lot of resources written by committers and contributors. Obtain Help Tapestry has an active user mailing list on which you can find a lot of valuable support. You can subscribe users-subscr...@tapestry.apache.org or look for an answer in the archives Having trouble? Try our Frequently Asked Questions. Footnotes Reference Notes 1 If you prefer, just mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org will work as well, and you will be prompted for the other details interactively. 2 That is, in the com.example.newapp.pages package. Change Notification Preferences View Online | View Changes
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Howard M. Lewis Ship Changes (2) ... [INFO] /tmp $ tree newapp newapp |-- pom.xml `-- src |-- main | |-- java | | `-- com | | `-- example | | `-- newapp | | |-- components | | | `-- Layout.java | | |-- pages | | | |-- About.java | | | |-- Contact.java | | | `-- Index.java | | `-- services | | `-- AppModule.java | |-- resources | | |-- com | | | `-- example | | | `-- newapp | | | |-- components | | | | `-- Layout.tml | | | `-- pages | | | `-- Index.properties | | `-- log4j.properties | `-- webapp | |-- About.tml | |-- Contact.tml | |-- Index.tml | |-- WEB-INF | | |-- app.properties | | `-- web.xml | |-- favicon.ico | `-- layout | |-- images | | |-- img01.jpg | | |-- img02.jpg | | |-- img03.jpg | | |-- img04.jpg | | |-- img05.gif | | |-- img06.gif | | |-- img07.gif | | |-- img08.gif | | |-- img09.gif | | |-- img10.gif | | |-- img11.gif | | |-- img12.gif | | |-- img13.gif | | |-- img14.gif | | |-- img15.gif | | |-- img16.gif | | |-- img17.gif | | |-- img18.gif | | |-- img19.gif | | |-- img20.gif | | `-- spacer.gif | |-- layout.css | `-- license.txt |-- site | |-- apt | | `-- index.apt | `-- site.xml `-- test |-- conf | |-- testng.xml | `-- webdefault.xml |-- java | `-- PLACEHOLDER `-- resources `-- PLACEHOLDER 25 directories, 44 files /tmp $ {noformat} ... Once it is created, you can load it into any IDE and start coding, or use {{mvn jetty:run{}}}{footnote}Jetty is a well-known, open-source, high-performance servlet container. Jetty starts up quickly, and implements the official Servlet specification very closely.{footnote}. Again, more one-time downloads, but then you can open your browser to [http://localhost:8080] to run the application. For more information on this, try the [Tapestry Tutorial|TAPESTRY:Tutorial] which goes into more detail about setting up your project, as well as loading it into Eclipse ... then continues on to teach you more about Tapestry. h2. More ... Full Content See it live ! You can play with Tapestry via our live demonstration applications. To start you can have a look at the Hotel Booking that has been developed by contributors and committers. The whole source code is available at github so you can download and play with it. Create your first Tapestry project The easiest way to get started is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. One you have Maven installed, execute the command mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org Maven will (after performing a large number of one-time downloads) ask you questions about how to create the new project, including a group id (like a package name) and an artifact id for your new project. $ mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO] task-segment: [archetype:generate] (aggregator-style) [INFO] [INFO] Preparing archetype:generate [INFO] No goals needed for project - skipping [INFO] [archetype:generate {execution: default-cli}] [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: http://tapestry.apache.org - quickstart (Tapestry 5.2.1-SNAPSHOT Quickstart Project) 2: http://tapestry.apache.org - tapestry-archetype (Tapestry 4.1.6 Archetype) Choose a number: : 1 Choose version: 1: 5.0.19 2: 5.1.0.5 3: 5.2.0 4: 5.2.1-SNAPSHOT Choose a number: : 3 Define value for property 'groupId': : com.example Define value for property 'artifactId': : newapp Define value for property 'version': 1.0-SNAPSHOT: Define value for property 'package': com.example: com.example.newapp Confirm properties configuration: groupId: com.example artifactId: newapp version: 1.0-SNAPSHOT package: com.example.newapp Y: [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 25 seconds [INFO] Finished at: Tue Aug 17 14:01:50 PDT 2010 [INFO] Final Memory: 16M/81M [INFO] /tmp $ The exact content and layout of project generated from the archetype will change
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Howard M. Lewis Ship Changes (0) ... h2. More Learn more about [Tapestry Philosophy|TAPESTRY:Principles] and then checkout our full [Documentation|TAPESTRY:Documentation] page on which you will find a lot of resources written by committers and contributors. h2. Obtain Help ... Full Content See it live ! You can play with Tapestry via our live demonstration applications. To start you can have a look at the Hotel Booking that has been developed by contributors and committers. The whole source code is available at github so you can download and play with it. Create your first Tapestry project The easiest way to get started is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. One you have Maven installed, execute the command mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org Maven will (after performing a large number of one-time downloads) ask you questions about how to create the new project, including a group id (like a package name) and an artifact id for your new project. $ mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO] task-segment: [archetype:generate] (aggregator-style) [INFO] [INFO] Preparing archetype:generate [INFO] No goals needed for project - skipping [INFO] [archetype:generate {execution: default-cli}] [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: http://tapestry.apache.org - quickstart (Tapestry 5.2.1-SNAPSHOT Quickstart Project) 2: http://tapestry.apache.org - tapestry-archetype (Tapestry 4.1.6 Archetype) Choose a number: : 1 Choose version: 1: 5.0.19 2: 5.1.0.5 3: 5.2.0 4: 5.2.1-SNAPSHOT Choose a number: : 3 Define value for property 'groupId': : com.example Define value for property 'artifactId': : newapp Define value for property 'version': 1.0-SNAPSHOT: Define value for property 'package': com.example: com.example.newapp Confirm properties configuration: groupId: com.example artifactId: newapp version: 1.0-SNAPSHOT package: com.example.newapp Y: [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 25 seconds [INFO] Finished at: Tue Aug 17 14:01:50 PDT 2010 [INFO] Final Memory: 16M/81M [INFO] /tmp $ tree newapp newapp |-- pom.xml `-- src |-- main | |-- java | | `-- com | | `-- example | | `-- newapp | | |-- components | | | `-- Layout.java | | |-- pages | | | |-- About.java | | | |-- Contact.java | | | `-- Index.java | | `-- services | | `-- AppModule.java | |-- resources | | |-- com | | | `-- example | | | `-- newapp | | | |-- components | | | | `-- Layout.tml | | | `-- pages | | | `-- Index.properties | | `-- log4j.properties | `-- webapp | |-- About.tml | |-- Contact.tml | |-- Index.tml | |-- WEB-INF | | |-- app.properties | | `-- web.xml | |-- favicon.ico | `-- layout | |-- images | | |-- img01.jpg | | |-- img02.jpg | | |-- img03.jpg | | |-- img04.jpg | | |-- img05.gif | | |-- img06.gif | | |-- img07.gif | | |-- img08.gif | | |-- img09.gif | | |-- img10.gif | | |-- img11.gif | | |-- img12.gif | | |-- img13.gif | | |-- img14.gif | | |-- img15.gif | | |-- img16.gif | | |-- img17.gif | | |-- img18.gif | | |-- img19.gif | | |-- img20.gif | | `-- spacer.gif | |-- layout.css | `-- license.txt |-- site | |-- apt | | `-- index.apt | `-- site.xml `-- test |-- conf | |-- testng.xml | `-- webdefault.xml |-- java | `-- PLACEHOLDER `-- resources `-- PLACEHOLDER 25 directories, 44 files /tmp $ The exact content and layout of project generated from the archetype will change across different releases of Tapestry. Once it is created, you can load it into any IDE and start coding, or use mvn jetty:run 1 . Again, more one-time downloads, but then you can open your browser to http://localhost:8080 to run the application. More Learn more about Tapestry Philosophy and then checkout our full Documentation page on which you will find a lot of resources written by committers and contributors. Obtain Help Tapestry has an active user mailing list on which you can find a lot of valuable support.
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Christophe Cordenier Comment: Fix footnotes Changes (4) ... The easiest way to get started is to use [Apache Maven|http://maven.apache.org] to create your initial project; Maven can use an _archetype_ (a kind of project template) to create a bare-bones Tapestry application for you. One you have Maven installed, execute the command {{mvn archetype:generate \-DarchetypeCatalog=}}{{[http://tapestry.apache.org]}}. Maven will (after performing a large number of one-time downloads) ask you questions about how to create the new project, including a group id (like a package name) and an artifact id for your new project. One you have Maven installed, execute the command {noformat} mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org {noformat} Maven will (after performing a large number of one-time downloads) ask you questions about how to create the new project, including a group id (like a package name) and an artifact id for your new project. {noformat}$ mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org [INFO] Scanning for projects... ... Having trouble? Try our [TAPESTRY:Frequently Asked Questions]. {display-footnotes} Full Content Create your first Tapestry project The easiest way to get started is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. One you have Maven installed, execute the command mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org Maven will (after performing a large number of one-time downloads) ask you questions about how to create the new project, including a group id (like a package name) and an artifact id for your new project. $ mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO] task-segment: [archetype:generate] (aggregator-style) [INFO] [INFO] Preparing archetype:generate [INFO] No goals needed for project - skipping [INFO] [archetype:generate {execution: default-cli}] [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: http://tapestry.apache.org - quickstart (Tapestry 5.2.1-SNAPSHOT Quickstart Project) 2: http://tapestry.apache.org - tapestry-archetype (Tapestry 4.1.6 Archetype) Choose a number: : 1 Choose version: 1: 5.0.19 2: 5.1.0.5 3: 5.2.0 4: 5.2.1-SNAPSHOT Choose a number: : 3 Define value for property 'groupId': : com.example Define value for property 'artifactId': : newapp Define value for property 'version': 1.0-SNAPSHOT: Define value for property 'package': com.example: com.example.newapp Confirm properties configuration: groupId: com.example artifactId: newapp version: 1.0-SNAPSHOT package: com.example.newapp Y: [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 25 seconds [INFO] Finished at: Tue Aug 17 14:01:50 PDT 2010 [INFO] Final Memory: 16M/81M [INFO] /tmp $ tree newapp newapp |-- pom.xml `-- src |-- main | |-- java | | `-- com | | `-- example | | `-- newapp | | |-- components | | | `-- Layout.java | | |-- pages | | | |-- About.java | | | |-- Contact.java | | | `-- Index.java | | `-- services | | `-- AppModule.java | |-- resources | | |-- com | | | `-- example | | | `-- newapp | | | |-- components | | | | `-- Layout.tml | | | `-- pages | | | `-- Index.properties | | `-- log4j.properties | `-- webapp | |-- About.tml | |-- Contact.tml | |-- Index.tml | |-- WEB-INF | | |-- app.properties | | `-- web.xml | |-- favicon.ico | `-- layout | |-- images | | |-- img01.jpg | | |-- img02.jpg | | |-- img03.jpg | | |-- img04.jpg | | |-- img05.gif | | |-- img06.gif | | |-- img07.gif | | |-- img08.gif | | |-- img09.gif | | |-- img10.gif | | |-- img11.gif | | |-- img12.gif | | |-- img13.gif | | |-- img14.gif | | |-- img15.gif | | |-- img16.gif | | |-- img17.gif | | |-- img18.gif | | |-- img19.gif | | |-- img20.gif | | `-- spacer.gif | |-- layout.css | `-- license.txt |-- site | |-- apt | | `-- index.apt | `-- site.xml `-- test |-- conf | |-- testng.xml | `-- webdefault.xml |--
[CONF] Apache Tapestry Getting Started
Getting Started Page edited by Christophe Cordenier Changes (10) ... {warning}The exact content and layout of project generated from the archetype will change across different releases of Tapestry.{warning} Once it is created, you can load it into any IDE and start coding, or use {{mvn jetty:run{}}}{footnote}Jetty is a well-known, open-source, high-performance servlet container. Jetty starts up quickly, and implements the official Servlet specification very closely.{footnote}. Again, more one-time downloads, but then you can open your browser to [http://localhost:8080] to run the application. h2. Obtain Help h2. More Tapestry has an active user mailing list on which you can find a lot of valuable support. You can subscribe [mailto:users-subscr...@tapestry.apache.org] or look for an answer in the [archives|http://markmail.org/search/list:org.apache.tapestry.users] Learn more about[Tapestry Philosophy |TAPESTRY:Principles] and then checkout our full [Documentation|../display/TAPESTRY/Documentation] page on which you will find a lot of resources written by committers and contributors. Having trouble? Try our [TAPESTRY:Frequently Asked Questions]. h2. Obtain Help h2. More Tapestry has an active user mailing list on which you can find a lot of valuable support. You can subscribe [mailto:users-subscr...@tapestry.apache.org] or look for an answer in the [archives|http://markmail.org/search/list:org.apache.tapestry.users] Checkout our [Documentation|Documentation] page on which you will find a lot of resources written by committers and contributors. Having trouble? Try our [TAPESTRY:Frequently Asked Questions]. Full Content Create your first Tapestry project The easiest way to get started is to use Apache Maven to create your initial project; Maven can use an archetype (a kind of project template) to create a bare-bones Tapestry application for you. One you have Maven installed, execute the command mvn archetype:generate DarchetypeCatalog=http://tapestry.apache.org. Maven will (after performing a large number of one-time downloads) ask you questions about how to create the new project, including a group id (like a package name) and an artifact id for your new project. $ mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO] task-segment: [archetype:generate] (aggregator-style) [INFO] [INFO] Preparing archetype:generate [INFO] No goals needed for project - skipping [INFO] [archetype:generate {execution: default-cli}] [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: http://tapestry.apache.org - quickstart (Tapestry 5.2.1-SNAPSHOT Quickstart Project) 2: http://tapestry.apache.org - tapestry-archetype (Tapestry 4.1.6 Archetype) Choose a number: : 1 Choose version: 1: 5.0.19 2: 5.1.0.5 3: 5.2.0 4: 5.2.1-SNAPSHOT Choose a number: : 3 Define value for property 'groupId': : com.example Define value for property 'artifactId': : newapp Define value for property 'version': 1.0-SNAPSHOT: Define value for property 'package': com.example: com.example.newapp Confirm properties configuration: groupId: com.example artifactId: newapp version: 1.0-SNAPSHOT package: com.example.newapp Y: [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 25 seconds [INFO] Finished at: Tue Aug 17 14:01:50 PDT 2010 [INFO] Final Memory: 16M/81M [INFO] /tmp $ tree newapp newapp |-- pom.xml `-- src |-- main | |-- java | | `-- com | | `-- example | | `-- newapp | | |-- components | | | `-- Layout.java | | |-- pages | | | |-- About.java | | | |-- Contact.java | | | `-- Index.java | | `-- services | | `-- AppModule.java | |-- resources | | |-- com | | | `-- example | | | `-- newapp | | | |-- components | | | | `-- Layout.tml | | | `-- pages | | | `-- Index.properties | | `-- log4j.properties | `-- webapp | |-- About.tml | |-- Contact.tml | |-- Index.tml | |-- WEB-INF | | |-- app.properties | | `-- web.xml | |-- favicon.ico | `-- layout | |-- images | | |-- img01.jpg | |
[CONF] Apache Tapestry Getting Started
Getting Started Page moved by Ulrich Stärk From: Apache Tapestry Navigation To: Apache Tapestry Index Children moved Change Notification Preferences View Online
[CONF] Apache Tapestry Getting Started
Getting Started Page added by Howard M. Lewis Ship Having trouble? Try our Frequently Asked Questions. Change Notification Preferences View Online