Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly is java server faces?

Tags:

java

asp.net

jsf

In comparison with asp.net webforms and asp.net mvc frameworks.


2 Answers

JSF is a component based MVC framework. It runs on top of the Servlet API. You can use the JSF tags in the old fashioned JSP files or, more designed towards JSF, in Facelets XHTML files.

It has a full worthy lifecycle as presented in the image below:

JSF lifecycle

Image is extracted from this page of the Java EE 7 tutorial. You can find a practical playground example in this article as well.

See also:

  • What is the difference between JSF, Servlet and JSP?
  • Picture/article which describes JSF lifecycle in detail
  • What components are MVC in JSF MVC framework?
like image 137
BalusC Avatar answered Aug 06 '26 18:08

BalusC


It's like ASP.Net webforms, where you use UI Components and event-bindings to build up your web pages.

like image 35
Mickel Avatar answered Aug 06 '26 18:08

Mickel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!