What is the difference between JSF and Facelets?

前端 未结 3 1176
爱一瞬间的悲伤
爱一瞬间的悲伤 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 16:02

    JSF is as you probably already gathered a component based system. These components are organized in libraries.

    JSF is the base standard and defines the standard taglibs core and html. These include the tags for such basic elements as input fields, buttons, labels and links. Facelets is the facelets taglib, it was originally distributed seperatly but now it is included in the JSF standard. Facelets contains tags like ui:composition, ui:insert and ui:define that can be used for templating. There are many other tag libraries that can be used with JSF like primefaces, richfaces, tomahawk and trinidad.

提交回复
热议问题