What is the difference between JSF and Facelets?

前端 未结 3 1174
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-25 15:18

I am following the Java EE6 tutorials and I don\'t understand the difference between JSF and Facelets. Chapter 4 goes has a section \'Developing a Simple JavaServerFaces App

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-25 15:45

    JSF is used with Facelets, before we were using jsp. Facelet is a view technology based on xml.

    Facelets was originally created as a separate, alternative view declaration language for JSF 1.1 and JSF 1.2 which both used JSP as the default view declaration language. Starting from JSF 2.0, Facelets has been promoted by the JSF expert group to be the default view declaration language. JSP has been deprecated.

    Important features facelets provides are templating, composite components, content reuse.

    http://www.ibm.com/developerworks/library/j-facelets/

提交回复
热议问题