Friday, June 3, 2016

Quick Solution: JSF 2 template itself shows style, but template client shows plain text without style

Problems:

I am trying to use JSF Facelet template/Facelet template client first time. I am creating template and template client with Netbeans 7.2.1. When I run that created JSF project and call http://localhost:8080/jpaweb/template.xhtml I can see template style, but when I call client template http://localhost:8080/jpaweb/client.xhtml I see plain text without style. Both files are in the same directory and created by Netbeans wizard. 


template.xhtml



client.xhtml



Answer


Solved. Changed value of web.xml file in url-pattern fieldof Faces Servlet  from /faces/* to *.xhtml, and that worked OK. 





No comments:

Post a Comment