aspose file tools*
The moose likes JSF and the fly likes xhtml file is not rendered in jboss 5.1 using jsf 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "xhtml file is not rendered in jboss 5.1 using jsf 1.2" Watch "xhtml file is not rendered in jboss 5.1 using jsf 1.2" New topic
Author

xhtml file is not rendered in jboss 5.1 using jsf 1.2

Teena Mariam
Greenhorn

Joined: Jul 14, 2008
Posts: 24
Hello,
Sorry about the duplicate post from Stackoverflow. Please take a look at this. Any help is greatly appreciated.
http://stackoverflow.com/questions/10991888/xhtml-file-cant-be-rendered-in-jboss-5-1-using-jsf-1-2

Thank you,
Teena
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16246
    
  21

StackOverflow is a good resource for getting quick answers, but they explicitly don't like it when people get into theory. We can theory all day long here.

Anyway, Facelets support (xhtml) was not a standard part of JSF 1.x. It's one of the major changes that came in with JSF2. So while JBoss 5 may have Facelets support built-in, telling it that you're running JSF 1 should have disabled it.

JSF2 is a fairly transparent improvement to JSF1, so unless your app is doing tricky "clever" things with JSF internals, your simplest solution may to be merely to change the schema version from 1.2 to 2.x.

If, on the other hand that doesn't work, you'd need to explicitly add the Facelets jar to your WAR and possibly tweak web.xml. I ran Facelets as far back as JSF 1.1, and it works very well using the instructions that were supplied at the Facelets home page.

I do recommend reading the JBoss docs on webapp configuration, though. Just because JSF is a standard doesn't mean that it has yet reached the point where JSF WARs are 100% generic.


Customer surveys are for companies who didn't pay proper attention to begin with.
Teena Mariam
Greenhorn

Joined: Jul 14, 2008
Posts: 24

Hello Tim,

Thank you!
Let me go try this once. I have added the facelets jar file. However, I haven't exactly followed the facelets and JBoss documentation.

Best regards,
Teena
 
jQuery in Action, 2nd edition
 
subject: xhtml file is not rendered in jboss 5.1 using jsf 1.2