This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF tags not rendered Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF tags not rendered" Watch "JSF tags not rendered" New topic

JSF tags not rendered

Prateek Kumar Singh

Joined: Jan 21, 2011
Posts: 29

Hi, Finally i got the solution behind this issue.

1. Check your faces config.xml file for JSF version.

2. The reason of the JSF components not being parsed at all indicates that the FacesServlet hasn't run. This will happen when the request URL doesn't match the url-pattern of the FacesServlet as definied in web.xml. This would mean that the actual url-pattern of the FacesServlet isn't *.xhtml at all. so you can add like -

and access your page like loginPage.jsf .

Hope it helps someone.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17423

Congratulations! You have discovered the difference between a resource path (/abc.xhtml) and a URL (.../abc.jsf)!

The FacesServlet accepts the URL whenever it matches the selection criteria (url-pattern) for the FacesServlet. URLs that don't match that criteria are checked against other servlets' URL patterns and then against the internal default servlet, which will attempt to find a JSP or static resource.

For URLs processed by the FacesServlet when Facelets are involved, the FacesServlet dissects the incoming URL and uses it to build an equivalent resource path, which is where it will attempt to find a View Template to render.

Some other things to note:

1. If you have a loginPage.jsf, I can virtually guarantee you have security problems waiting for you.

2. You do not need all those different URL patterns for the FacesServlet. Generally you'd either have the "*.jsf" pattern or the "/faces/*" pattern or the "*.faces" pattern.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: JSF tags not rendered
It's not a secret anymore!