• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Nest tiles don't work :(

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

This problem is quite hard to explain since it is the first time that I have encountered it. Basically I am trying to have tile reference from pages that are loaded using tiles as well.

I have a default.jsp page that is used as a template by all other pages. This default.jsp page has the following XTML:



In the tiles-def.xml file I have the following settings for the default definition.



Now I have the home.jsp page. In the tiles-defs.xml file I set the definition for home as follows:



This works fine, and the home page is loaded using with the header at top and footer at bottom. However I tried adding the a tile definition in the home page as follows:



I would expect that on the home page I get the title printed as well. However instead I get the following exception on screen:



Why is this happening? I do have the �title� attribute defined! Then why doesn�t it want to work?

Thanks for any comments,
Regards,
Sim085
 
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

tiles does have an individual scope (tiles-scope). that means that you are unable to access attributes from inside a nested scope unless you save them explicitly.

take a look at the answer i gave in this thread, that's pretty much the constellation you need as well.

there is an "advanced tiles" pdf available which explains those details, should you be more interested...

:-)

hope it helps,
jan
[ October 22, 2006: Message edited by: Jan Groth ]
 
Simon Joseph Aquilina
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank You very much

That was really helpfull

Thanks,
Sim085
reply
    Bookmark Topic Watch Topic
  • New Topic