Start.tml is in
src/main/webapp/Start.tml
Davor Hrg wrote:
where's your start.tml located ?
Davor Hrg
On Dec 7, 2007 5:07 AM, Dapeng <[EMAIL PROTECTED]> wrote:
Hi
First time try T5
i followed the link
http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head>
<title>My Tapestry Application</title>
</head>
<body>
<t:body/>
</body>
</html>
copy the codes into respective
src/java/com/my/components/Layout.tml
src/java/com/my/components/Layout.java (empty class)
and have my start page as the guide stated
<t:layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
My Page Specific Content
</t:layout>
then run,
getting into
An unexpected application exception has occurred.
java.lang.IllegalStateException
This markup writer does not have a current element. The current element
is established with the first call to element() and is maintained across
subsequent calls.
my environment:
1. netbeans 6
2. maven plugin for nb 6
3. t5 5.0.6
4. tomcat 6
here is my pom
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.my</groupId>
<artifactId>test2</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>test2 Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.tapestry</groupId>
<artifactId>tapestry-core</artifactId>
<version>5.0.6</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<finalName>test2</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>RELEASE</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
</properties>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]