Hi all, i am working on tiles,i did a sample application on tiles just to display all other pages from a template page,it worked.but now i have a left menu in a layout where i have given links(hrefs) to all other pages.if i click on the links ,its working fine but it will not display in layout.whether i have to use putList or what?please explain to change contents(pages)in an application using my left menu options(ie, hrefs). please post reply. THANKS IN ADVANCE
hi chris, Thanks for the example,but the thing is that i am using(<tiles:insert definition="index.page" /> in Jsp page to include the content. in detail: 1>i have a left navigation where i have given 4 href to go to other pages like addemployee,listemployee,designation....etc 2>my template look like this
<definition name="index.page" extends="example" > <put name="body" value="/Department.jsp" /> </definition> </tiles-definitions> MY PROBLEM IS: i am getting tiles layout with navigation,header,footer,body(simple static page),but when i click on the link(hrefs) i am getting my content(Department.jsp) displayed outside the layout.
Each linked page you're going to should have its own definition.
Also, looking at index.page I see something that may be a problem. In the base definition (example) to add body with a value. Then in index.page you give body a value, while at the same time inheriting a body value from example. You are going to be specifying a different body in each page, so I would pull it out of the base def..you'll have to make changes to your struts-config more than likely when you do this as well.
Hope it helps, Chris
PS, Like they say, you're going to have to change your name to something that looks like a real full name. This is a great community for getting help and it's about the only rule enforced. [ November 13, 2006: Message edited by: Chris Boldon ]