aspose file tools*
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF tags not rendered" Watch "JSF tags not rendered" New topic
Author

JSF tags not rendered

Prateek Kumar Singh
Greenhorn

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: 16305
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF tags not rendered