How JSF different from conventional JSP?

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.
How the components of JSF are rendered?
How the components of JSF are rendered? - Add JSF libraries to an application. Add the .jsp tag libraries in the .jsp page like:...
How to declare the Navigation Rules for JSF?
How to declare the Navigation Rules for JSF? - A navigation rule specifies the JSF implementation which page need to send back to the browser after submitting a form...
What is JSF framework?
What is JSF framework? - JSF framework is an API for developing user interface components for web applications...
Post your comment