aspose file tools*
The moose likes JSF and the fly likes JSF tags not rendering in .xhtml file but render in .jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF tags not rendering in .xhtml file but render in .jsp" Watch "JSF tags not rendering in .xhtml file but render in .jsp" New topic
Author

JSF tags not rendering in .xhtml file but render in .jsp

Femi Byte
Ranch Hand

Joined: Jul 09, 2004
Posts: 40
Hi guys, I am trying to get a small application that uses JSF for rendering.
I can't get it to render JSF tags in an .xhtml file properly. However, these tags are properly rendered in an equivalent .jsp file.

Here are the contents of the web.xml file:





The application server I am using is JBoss 5.1.0 GA.
Can anyone provide any pointer as to what could be wrong?

Here are the contents of the register.xhtml file:



Here are the contents of the register.jsp file:



Russell Bateman
Ranch Hand

Joined: Feb 26, 2008
Posts: 69
Not certain why no one has replied. I had what I think is the same problem. Here's what I ended up adding to faces-config.xml that solved the problem for me. Of course, this depends on the library(ies) you're using too.

I'm working on an article about this at Simple JSF Facelets Project. See what you think.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

One reason no on has replied is this person's display name: "Femi Byte".


We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see
http://www.javaranch.com/name.jsp .


A lot of us simply won't respond until offenders fix their display names.


Customer surveys are for companies who didn't pay proper attention to begin with.
Russell Bateman
Ranch Hand

Joined: Feb 26, 2008
Posts: 69
Ah, okay. That's right. I know about the names, but I didn't even notice it--only the question.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF tags not rendering in .xhtml file but render in .jsp