How JSF different from conventional JSP?In JSP, page navigation and validation should be implemented by developers. It is much more convenient to develop web applications in JSF.
Custom UI can be developed in JSF.
How JSF different from conventional JSP?1. JSP is good for mixing static content and dynamic content pulled from resources made available by other parts of the application; for instance, a servlet.
2. JSP's main mission in life is to generate a response to a request; a JSP page is processed in one pass from top to bottom, with JSP action elements processed in the order in which they appear in the page.
3. However, JSF has a much more complex lifecycle.
4. JSF components get created, process their input (if any), and then render themselves.
5. For JSF to work well, these three things must happen separately in a well-defined order, but when JSF is used with JSP, they don't.
6. Instead, the component creation and rendering happens in parallel, causing all kinds of problems.
|