A complete web application requires a web framework to generate HTML pages, receive user input, and manage the navigation flow. The consensus among most web developers is that a Model-View-Controller (MVC) architecture is the best for web frameworks. In an MVC framework, the controller takes user input and decides which view to show next; The view renders the HTML page for the browser; The model encapsulates data captured from the web form and to be displayed on the web page.
There are many web frameworks available. JavaServer Faces (JSF), is the standard Java EE web framework . While JSF does have a leg up on the competition by being a standards-based technology, the decision to embrace JSF over the alternatives goes much deeper.
JSF is a well-designed and easy-to-use component-based web framework. This component-based development model aligns perfectly with the lightweight POJO approach we are promoting. The development model is clean and simple.
A JSF application primarily contains two types of components -- both are easy to use and conforming to the POJO philosophy.
Dynamic data on JSF pages and forms are modeled in POJOs known as JSF backing beans. The backing bean lifecycle is managed by the JSF server. For instance, a backing bean can have a session scope to track a user session. A backing bean can be dependency injected into another bean via an XML configuration file, and it can be injected into a JSF UI component via the JSF Expression Language (EL). The backing bean also provides the integration points between the web UI and the EJB3 business components.
The JSF request model is powerful and easy to extend. Technologies like Facelets and Seam have been developed on top of JSF, providing even richer development environments. While competing frameworks all have nice features, JSF seems to be the easiest to extend. We expect even more innovative extensions in the near future, clearly making JSF the framework of choice for most EE projects.
Of course, JSF isn't without its drawbacks. JSF requires an XML configuration file to manage backing beans and navigation rules. As we will also soon see, the integration between JSF backing beans and EJB3 beans is not entirely smooth. In addition, JSF usage from JSPs can get tricky at times. However, these problems are not entirely unique to JSF. Other frameworks exhibit similar problems. The good news is that the JSF model is advanced enough that solutions to all of the issues have been developed.
1. i m new web developer i have basic working knowledge of servlet and jsp , but i want ake application
View Tutorial By: amit at 2015-11-11 04:10:15
3. can anyone guide me what exactly a JSF is?? and how does it work through IDE'S through any videos...
View Tutorial By: ashmitha at 2012-06-30 17:16:54
4. Aoa. could anybody guide me about jsf with hibernation. i wana make a shoping webapp .
View Tutorial By: imtiaz afridi at 2011-12-03 12:19:04
5. could u help me i want to integrate the paypal system in my website
View Tutorial By: Anand at 2011-01-17 21:59:25
6. Yes, its possible to send SMS through web application. For that you need mobile software gateway(mob
View Tutorial By: Vidya at 2010-07-08 07:19:58
7. I am an MCA student i wanna know whether one can send an sms through java web application running in
View Tutorial By: RAJU.K at 2009-07-24 02:28:21
Most Viewed Articles (in JSF )
Latest Articles (in JSF)
Comment on this tutorial
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews