Articles tagged with: java server faces
JEE, JSF, Tech Notes »
JSF – Java Server Faces is a web tier technology. This technology is different from other JEE web tier technologies in many aspects. This tutorial helps you to understand building blocks of JSF, compares it with other web tier technologies like Struts, Spring MVC etc. Following detailed articles constitute this tutorial.
JSF Hello World Example on Eclipse and Tomcat: An example code that can be a starting point for your trials of JSF technology.
Mapping JSF with Other Web Tier Technologies: This article explores similarities, and differences amongst JSF and other web …
JEE, JSF, Tech Notes »
By now you must have understood what is jsf, how to write simple application using jsf, and what are the changes required if you want to use jsp with jsf. In this article, we will try to explore the request processing by jsf. How does it work when we submit a request from client browser?
We need to consider two scenarios here. These scenarios arise because JSF handles first page request from client differently than a post back request(repeat request for same page).
Request Processing for First Request:
The JSF request for a …
JEE, JSF, Tech Notes »
Normally, a jsp contains static and dynamic contents. Static contents are written using html while dynamic contents are executed at server side, and the resultant data is presented again in html format. When a page is presented in a browser, it contains sequence of html tags that are nested to present view elements and data. When we are working with JSF, the presented page is still the same, but the way jsp code is written, and the way it is processed by the container, there is major difference. Let us …
JEE, Tech Notes »
If we look at the new technologies introduced in Java domain, it can be clearly seen that web tier is one of the prime focus area now a days. Evolution of Java web technology had been slow as compared to the middle tier and persistent data access technology for past few years. For ages, we have been building presentation tier of our application around the jsp technology, with minor variation in the way we are constructing a jsp page. Though web tier is face of any application, and it has …
JEE, JSF, Tech Notes »
In this example, we will write a simple application using JSF and it’s default renderer – HTML renderer on Eclipse IDE. Next, the application will be deployed on tomcat, and run to see results. Functionality of our project is simple – enter first name and last name, on press of submit button, show the complete name. If any field is empty then show error.
Create a Dynamic Web Project
Create dynamic web project in eclipse using following steps. In eclipse, click on New > Project to arrive at following screen.
On this screen, …
