GeeCON Prague 2014*
The moose likes JSF and the fly likes Problem achieving masterpage functionality in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "Problem achieving masterpage functionality in JSF" Watch "Problem achieving masterpage functionality in JSF" New topic
Author

Problem achieving masterpage functionality in JSF

Nitesh Panchal
Ranch Hand

Joined: Dec 23, 2008
Posts: 48
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
 
GeeCON Prague 2014
 
subject: Problem achieving masterpage functionality in JSF