• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

JSF implementation  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi there
I start learn about JSF and i want to be really know about the different implementation just for sort idea issue,

My question is
Tomcat provided by Apache have MyFaces implementation
GlassFish provided by Oracle/sun have Mojarra implementation
Jboss provided by RedHat have what ??

 
Rancher
Posts: 506
15
Java Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss application server is configured and shipped with a Java EE (Mojarra) implementation. Its the same with the Glassfish application server. To deploy JSF web application on a Apache Tomcat web server one must use a JSF implementation library like Apache MyFaces.

JBoss AS also allows multiple JSF implementations (can configure a default and a secondary, e.g., Mojarra and MyFaces respectively).
 
Saloon Keeper
Posts: 20510
115
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat does not provide any JSF implementation. Tomcat is not a full-stack implementation of JEE and this is one of the stack items that Tomcat lacks. Instead you have to provide your own JSF implementation, and whether you use Mojarra, MyFaces, or some other implementation of the JSF spec - or even write your own - makes no difference to Tomcat. It's all bundled with the webapp's WAR.

GlassFish, Wildfly, and, indeed WebLogic and WebSphere are all full-stack JEE servers*. Accordingly, they must faithfully implement JSF according to the JSF section of the JEE specification. What actual code they use (or invent) to do so, should not be something that JSF applications worry about - only what version of the spec they implement, just as is the case for servlets and JSPs. And, of course, if the vendor decides to switch to a different implementation at any time, it should not change the webapps written for that server.

* Technically, I'm not sure you can call JBoss a JEE server (hence an implementor of JSF). I think the name change to Wildfly happened about the same time J2EE was superseded by JEE, and one of the differences between J2EE and JEE is that J2EE does not define JSF, but JEE does.
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!