JSF 的 MyFaces 与 Sun 参考实现
也许,一些性能比较或一些明显的具体差异是我想知道的。
据我所知,没有什么太大的区别。因此,我还有一个问题。出于什么目的,许多人花时间重新发明轮子来实现更多已经实现的规范?
Maybe, some performance comparison or some noticeable specific differences is what I want to know.
As I heard there is no really big difference. Hence, I've got one more question. For what purposes dozens of people spent their time to reinvent the wheel implement already implemented spec ones more?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Sun RI 1.0 和 1.1 的早期版本充满了令人讨厌的错误。那时 MyFaces 是更稳定的选择。自 2006 年初左右的 1.1.02 和 1.2.02 以来,新的 Sun JSF 开发团队做了出色的工作。不仅修复了错误,还增强了性能。到目前为止,我敢说 Mojarra 是更好的选择。
直接回答你的问题:
通常是为了让它变得更好。或者只是因为它可以。或为意象。至少 Apache 可以实现/增强 Sun 带来(或缺少)的几乎所有内容。
The Sun RI 1.0 and the early versions of 1.1 were cluttered by nasty bugs. At that moment the MyFaces was the more stable alternative. Since 1.1.02 and 1.2.02 around early 2006 the new Sun JSF dev team did great work. Not only with bugfixing, but also with performance enhancements. As of now I dare to say that Mojarra is the better choice.
To get straight on your question:
Often to make it better. Or just because it can. Or for the imago. At least Apache is known to implement/enhance almost everything which is brought by (or missing in) Sun.
JSF 最初并不是开源的。 (2005 年的 eWeek:Sun 开源 JavaServer Faces) 这促使启动了一些干净的房间实现,以便可以更自由地使用和分发规范。 Mojarra CDDL+GPL 许可证的条款并不适合所有人,因此仍然有动力在 Apache 许可证下继续开发。
JSF was not, initially, open source. (eWeek in 2005: Sun Open-Sources JavaServer Faces) This prompted a couple of clean-room implementations to start so the spec could be used and distributed more freely. The terms of the Mojarra CDDL+GPL license aren't going to suit everybody, so there is still incentive to continue development under the Apache license.
人们实施已经实施的规范来使它们变得更好。确保规范得到良好执行的唯一方法是再次实施它。不同的人想法不同。在过去的几个月(2011 年 6 月)中,已经完成了大量用于增强 MyFaces Core 性能的编码。要了解更多信息,您可以订阅 myfaces 开发者和用户邮件列表并直接询问。
经过深思熟虑,我写了一篇博客,从技术角度给出了选择 MyFaces 的 10 个理由 这里。
2012 年 5 月更新
对于那些想要查看 MyFaces、Mojarra 和 Wicket 之间的性能比较的人,请查看 了解 JSF 2 和 Wicket:性能比较
People implement already implemented specs to make them better. The only way to be sure a spec is well done is to implement it again. Different people think different. In the last months (JUN 2011) a lot of coding to enhance MyFaces Core performance has been done. To know more, you can suscribe to myfaces dev and user mailing lists and ask directly.
Thinking more about it, I wrote a blog giving 10 reasons why choose MyFaces from a technical point of view Here.
UPDATE MAY 2012
For the guys who want to see a performance comparison betwen MyFaces, Mojarra and Wicket look Understanding JSF 2 and Wicket: Performance Comparison