You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Prajesh Kacha <pr...@coriolis.co.in> on 2009/08/18 07:40:30 UTC
Header, footer component are not working.
Hello Friends,
I want to add header and footer in my web page .
But it is not working.
I have create my .java and .tml file in there appropriate "components"
folder.
Here is my component file called "HF.tml".
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head>
<title> This Is Header File </title>
</head>
<body>
<p> <h1> this is header </h1> </p>
<t:body/>
</body>
</html>
===================================
HF.java
package org.example.myapp.components;
public class HF {
}
===================================
Another.tml
<t:hf xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<h1>my another page</h1>
</t:hf>
==============================================
Another.java
package org.example.myapp.pages;
public class Another{
}
================================================
But it just display
my another page
but it should show
*this is header*
my another page
Prajesh J. Kacha.
Coriolis Technologies Pvt Ltd.