-
Notifications
You must be signed in to change notification settings - Fork 5
Creating a new Tapestry Page
It helps the user to create a new Tapestry page and it's corresponding java class in a Tapestry project. Optionally, creates a properties file corresponding to the Tapestry page.
Step 1: Right click on Tapestry Project ->New ->Other
This will open a Select a wizard popup menu
Step 2: Select 'Tapestry Page' option from 'Web Tools' folder and click on 'Next' button. New 'Add Tapestry 5 Page' pop up window will open.
On the above 'Add Tapestry 5 Page' window user will have to provide the input to create a new Tapestry Page.
- Project: Dropdown list which contains the name of the tapestry projects in the workspace in which the Tapestry page will be created. When the new tapestry page wizard is opened for a project this field will be disabled with the project name as default value.
- Java source folder: User can select a source folder from the selected project where the java file will be created.
- Tml source folder: User can select a source folder from the selected project where the tml file will be created.
- Package: Select Name of the package in the selected folder in which the tml and java file will be created. Create the package structer in the project if it does not exist before .Default package name is a combination of file and <.pages>. In the above diagram default package name is net.atos.tapestry.test.pages in which net.atos.tapestry.test is taken from web.xml and .pages is appended to it. If other packages needs to created then it must be a sub package of this default package.
- Browse Button: Browse to select an existing package in which the tml and java will be created.
- **Page Name: Name of the Tapestry page.It will be used as the name of tml file and it's corresponding java file and optionally the properties file
- Create properties file: Provide the user an option to create a properties file for the tapestry page. If selected,it will create .properties file inside the same package of tml file.
- Template: Select a template to be used in the tml file.
** Step 3:** Click on finish !
It will create one .java file in the provided package name under the Java Source Folder ,one .tml in the provided package under the Tml source folder and optionally,a .properties file at the same location of tml file.