Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF vs MyFaces

 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone tell me the difference between JSF and Apache MyFaces.

What i understood is, MyFaces is an Apache open source project which creates JSF components. Am i right ? Will appretiate if anyone can explain more on this.

Thanks,
Rajeev.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18002
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF is the standard (JSR-127), MyFaces is an implementation of that standard, and yes, it's open-source. Another one is Oracle's ADF Faces. I think tht one's free to use, although I don't lnow about it being open-source.

There was also a Sun Reference Implementation JSF, which ws pretty feeble. I think they broke it and then abandoned it.

JSFs aren't mix-and-match, BTW. I got into trouble when I first used JSF because I'd installed the Sun RI and then added MyFaces to it. I had to remove the Sun RI JSF stuff from the project before things would behave reliably.
 
geeta lalchandani
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By this...
There was also a Sun Reference Implementation JSF, which ws pretty feeble. I think they broke it and then abandoned it.


do you mean, that Sun Reference Implementation is the implementation of JSR-127 as is MyFaces??
 
Alexander Jesse
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF is a specification controlled by the JCP.

JSF-RI (RI == Reference Implementation) is Sun's JSF-implementation and everything else than dead. Right now it's the only implementation that is on the JSF 1.2 level.

MyFaces is an Apache Project delivering some items:
- MyFaces JSF implementation
- Tomahawk component library
- Tobago a donated (now opensource) component library
- Trinidad, parts of Oracle's ADF-Faces which have been opensourced

hth
Alexander
 
Chris Schalk
author
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Answer Alexander!
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Holloway:
...
There was also a Sun Reference Implementation JSF, which ws pretty feeble. I think they broke it and then abandoned it.
...


Is this the 1.1 implementation? Do you know about 1.2? Is that worth looking at or should people stick with 1.1?
 
jonny moo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also could someone explain if the reference implementation (JSF 1.1) has the same functionality as MyFaces, i.e. are they interchangable? If they are does this mean that you can use the tomahawk components with the RI?
 
Joe Jose
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by jonny moo:
Also could someone explain if the reference implementation (JSF 1.1) has the same functionality as MyFaces, i.e. are they interchangable? If they are does this mean that you can use the tomahawk components with the RI?


I am using jsf 1.1 with tomahawk. But I just started working on it. Why I use is, am using tomcat 4.1.29 version and I just want to avoid writing custom components for tab pane. In tomahawk, there is a tag that will work with tomcat 4.1.29 . I don't know whether there is any problems when I grow with the developement using both jsf and tomahawk. Appreciate any comments.

Thanks,
 
thamara chempakam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the benefit of apache myfaces over JSF1.2
 
Ryan Lubke
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by thamara chempakam:
what is the benefit of apache myfaces over JSF1.2


First, let's clear up the terminology. JSF 1.2 is a specification.
MyFaces provides an implementation of this specification. I believe
the original intent of the question is what's the difference
between the 1.2 RI and MyFaces 1.2.

If that is indeed the case, technically they should both be the same, as they
implement the same spec. However, the RI has been out and actively worked for over a year (bug fixes, performance fixes, features). MyFaces 1.2 has been out for one or two months, and have had the usual issues associated with a first release.

That said, MyFaces also has a very nice component community. These components should run on *any* compliant JSF implementation (meaning the RI or MyFaces).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic