JSF in Eclipse Europa (Live Demo)

JavaServer Faces (JSF) has been dubbed the next big thing in Java web programming. With JSF, you use web components on your web pages and capture events caused by user actions. In the near future, Java tools will support this technology. Developing web applications will be similar to the way we write Swing applications today: dragging and dropping controls and writing event listeners. This article is an introduction to JSF. It highlights the most important aspect of JSF: JSF applications are event-driven. Also, it offers a sample JSF application that illustrates the event-driven-ness of JSF. To understand this article, you need to be familiar with servlets, JSP, JavaBeans, and custom tag libraries.

First of all, a JSF application is a servlet/JSP application. It has a deployment descriptor, JSP pages, custom tag libraries, static resources, et cetera. What makes it different is that a JSF application is event-driven. You decide how your application behaves by writing an event listener class. Here are the steps you need to take to build a JSF application:

  1. Author JSP pages, using JSF components that encapsulate HTML elements.
  2. Write a JavaBean as the state holder of user-input and component data.
Write an event listener that determines what should happen when an event occurs, such as when the user clicks a button or submits a form. JSF supports two events: ActionEvent and ValueChangedEvent. ActionEvent is fired when the user submits a form or clicks a button, and ValueChangedEvent is triggered when a value in a JSF component changes.

Now, let's take a look at how JSF works in detail. THIS is an END to END Application


The Eclipse IDE for Java EE Developers is a simultaneous release of Eclipse Projects for Java Enterprise Edition.

This post is first in the series of screencasts about the Eclipse Europa release. It shows how to use the Eclipse IDE for Java EE Developers to create Java persistent entities from database tables.

MySQL database is used to demonstrate the Data Tools Platform and JBoss is used as a Java EE application server.


Using the Eclipse Data Tools Platform:(05:30):

Dali - Java Persistence Tools (03:10):



The above parthas shown how to use the Eclipse IDE for Java EE Developers to create Java persistent entities from database tables. This screencast completes the JEE application.

In this screencast:

  • How to create a session bean
  • Configure persistence unit
  • Deploy on JBoss
  • Create a JEE client

Create a session bean and deploy JEE application:(02:40):

Create a JEE client (01:35):


In this screencast tutorial you'll learn how to setup and use Eclipse JavaServer Faces tools for rapid Web application development.

We will complete the following steps:

  1. Register JSF libraries
  2. Create Dynamic Web Project
  3. Add JSF Facet to the Web project
  4. Create JSP Page templates
  5. Define page navigations rules
  6. Create managed beans
  7. Edit JSF pages in the Web Page Editor
  8. Deploy and execute JSF applications

Let's get started.












Creating a JavaServer Faces Project (steps 1-3)









Building a JSF application (steps 4-8)

In the next screencast (Part II) we will assemble a JEE application by combining a JSF module and an EJB module



In this screencast-tutorial we will assemble a JEE application by combining a JSF module and an EJB module from previous tutorials.


Creating an enterprise application project (03:30):

JSF editing and deployment (01:50):

For this tutorial we have used materials from:

  1. JSF tools subproject
  2. Eclipse IDE for Java EE Developers

0 comments: