Hi guys; I am trying to compose a page but assembling various sections e.g the menu bar, the header and the footer as separate components.
I have my Index page which "inherits" from the main layout. Now i have made the menu bar as follows menubar.tml <html t:type="menubar" xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"> <body> <h2>I am a menubar</h2> </body> </html> Menubar.java package com.josh.tcontacts.components; public class MenuBar { } index page tml <html t:type="layout" xmlns:t=" http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"> <head> </head> <body> <h1>Hello world . Its now ${today}</h1> <t:menubar/> </body> </html> index page java package com.josh.tcontacts.pages; import java.util.Date; import org.apache.tapestry5.annotations.Property; public class Index { private Date today ; public Date getToday() { return new Date(); } public void setToday(Date today) { this.today = today; } } How do i add the menubar to the index page? i have done the above but its not working. regards