Hello, thanks for fast answer, but tapestry.app-package is set to eu.hlavki.tamsample.
So Layout.tml is in eu/hlavki/tamsample/components folder. Is that wrong? thanks, m. On Thursday 23 October 2008 20:08:18 Howard Lewis Ship wrote: > Your Layout.tml is likely in the wrong location. > > On Thu, Oct 23, 2008 at 11:04 AM, Michal Hlavac <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I created sample tapestry5 applicatoin from maven quickstart archetype... > > > > Then I created Layout.tml and Layout.java > > Layout.tml: > > <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> > > > > > > Layout.java: > > public class Layout { > > } > > > > Index.tml: > > <html t:type="layout" > > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> > > <h1>tamsimple 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="Index">refresh</t:pagelink>] > > </p> > > </html> > > > > Index.java: > > public class Index { > > > > public Date getCurrentTime() { > > return new Date(); > > } > > } > > > > Source from browser is: > > <p> > > [<a href="/tamsimple/">refresh</a>] > > </p> > > > > > > There is no <html> tag... It renders only last <p> element from > > Index.tml. I am using tapestry 5.0.15. > > > > thanks, m. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] -- [ michal hlavac ][ [EMAIL PROTECTED] ][ http://www.hlavki.eu ] [ icq:94900232 ][ [EMAIL PROTECTED] ][ callto://hlavki ] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
