• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xhtml file is not rendered in jboss 5.1 using jsf 1.2

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Teena Mariam
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic