• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
Hello,
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
 
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic