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:
- Author JSP pages, using JSF components that encapsulate HTML elements.
- Write a JavaBean as the state holder of user-input and component data.
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):
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):
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:
- Register JSF libraries
- Create Dynamic Web Project
- Add JSF Facet to the Web project
- Create JSP Page templates
- Define page navigations rules
- Create managed beans
- Edit JSF pages in the Web Page Editor
- 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):
For this tutorial we have used materials from:
- Eclipse Web Tools Platform: Developing Java(TM) Web Applications
- Core JavaServer(TM) Faces (2nd Edition)
- JavaServer Faces in Action
- JavaServer Faces
- Enterprise JavaBeans 3.0 (5th Edition)
- Head First EJB
- EJB 3 in Action
For a JBoss application server installation instructions take a look at .
0 comments:
Post a Comment