The main differences between JSF 1.2 and 2.0

I need to speed up with JSF 2.0. I found a good and practical tutorial in the JSF tutorial . This tutorial describes how to create JSF applications using JSP (JSF 1.2). In our place we use JSF 2.0 and a building with Facelets. Studying a tutorial using JSP, what are the pitfalls and differences, do I need to know when to do something with Facelets?

+8
java jsf
source share
2 answers

The great thing about Facelets vs. JSP as a viewing technology for JSF is that facelets respect the entire jsf life cycle, while with JSP you have two competing life cycles (JSF vs. JSP).

In JSPs, you might be tempted to use other tag libraries (such as JSTLs) that may not behave as you expect, due to differences in the life cycle. Some JSTL tags were converted to facelet tags, but even then pure JSF replacements are usually suitable for them (for example, ui: repeat instead of c: foreach)

If you are using JSF 2.0, use facelets and you will never look back.

+4
source share

The front sides tend to work well.

The main difference in JSF 2.0 compared to earlier versions is that you can easily invoke Java methods using EL, making it much easier to perform the logical operations and information passed in the JSF fragments themselves.

+1
source share

All Articles