Java Server Faces Question:

Explain how JSF different from conventional JSP?

Tweet Share WhatsApp

Answer:

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.
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.
However, JSF has a much more complex lifecycle.
JSF components get created, process their input (if any), and then render themselves.
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.
Instead, the component creation and rendering happens in parallel, causing all kinds of problems.

Download Java Server Faces PDF Read All 18 Java Server Faces Questions
Previous QuestionNext Question
Tell me JSF supports AJAX?Tell me how the components of JSF are rendered?