• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Problem achieving masterpage functionality in JSF

Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read few tutorials and saw that <ui:insert> is similar to <asp:contentplaceholder> but when i try to create it, the content of masterpage is not seen. Here is the code. Can anybody tell me what is wrong?

This is my index.xhtml (Masterpage)

This is my Child page which wants header and footer from masterpage

The page should display this is header.Here is some new content and this is footer, but it's only displaying here is some new content.

I read that we need to configure facelet-config file and put this in it.

But as soon as i put the above junk in facelet-config, the deployment fails and says there is no such class as FaceletViewHandler, so i removed it. I've spent now almost 3 hours trying to run this simple page. Please help me. I am using JSF 2.0

Thanks in advance
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic