Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
 
subject: Problem achieving masterpage functionality in JSF
 
Similar Threads
JSF 2.0 Login
Primefaces setup causing problems JSF 2.0
Why events are not fired when value changes in h:selectOneMenu? I am stuck!
Facelets and JSF
Bug in chrome