• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem achieving masterpage functionality in JSF

 
Nitesh Panchal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic