Sunday, August 10, 2008

How JSF Fits For Web Applications?

JSF best suits in to the java web development environment because of reasons described below : JSF has many advantages over other existing frameworks that makes it a better choice for web application development. Some of the reasons are below:

Easy creation of UI:
It makes easier to create complex UI for an applicaton using jsf tags.Its APIs are layered directly on top of servlet APIs that enables us to use presentation technology other than JSP,creating your own custom components and rendering output for various client devices.

Capacity to handle complexities of UI management:
It handles cleanly the complexities of UI management like input validation, component-state management, page navigation, and event handling.

Clean separation between presentation and logic:
One of the greatest advantage of jsf is to clearly separate behaviour and presentation in an application. JSF is based on the Model View Controller (MVC) architecture.

Shorter development cycle:
This separation between logic and presentation enables a wide range of users( from web-page designers to component developers). It allows members of team to focus on their own work only , resulting in division of labour and shorter development cycle.

Standard Java framework:
JSF is a Java standard which is being developed through Java Community Process (JCP). Several prominent tool vendors are members of the group and are committed to provide easy to use, visual, and productive develop environments for JavaServer Faces.

An extensible architecture:

JSF architecture has been designed to be extensible.Extensible means additional functionality can be given on the top of JSF core i.e. we can customize the functionality. JSF UI components are customizable and reusable elements. You can extend standard components and create your own complex components like stylish calendar, menu bar etc.

Support for multiple client devices:
Component developers can extend the component classes to generate their own component tag libraries to support specific client. JSF flexible and extensible architecture allows developers to do so.

Flexible rendering model:
Renderer separates the functionality and view of the component. So we can create multiple renderers and give them different functionality to get different appearance of the same component for the same client or different .

International language support:
Java has excellent support for internationalization . It allows you to localize messages with user specific locale. A locale is a combination of a country, a language, and a variant code. JavaServer Faces adopts this property and let you specify which locale your application supports. So you can display you messages in different languages.

Robust tool support:
There are several standard tool vendors like Sun Java Studio Creator who provide robust tools that take advantages of JSF to create server side UI easily.

source: roseindia.net

Friday, August 08, 2008

JSF Features

JSF is a rich featured framework of JAVA technology. JSF provides a set of standard features that makes it a powerful and standard among the existing technologies available for the development of web application based on java technologies. Some of the features have been given below to justify the above statement.

  1. JSF is standard web user interface framework for Java.
  2. Built on top of Servlet API.
  3. JSF is a component framework
  4. UI components are stored on the server.
  5. Easy use of third party components.
  6. Event driven programming model.
  7. Events generated by user are handled on the server.
  8. Navigation handling.
  9. Can automatically synchronize UI components .
  10. JSF supports multiple client devices.
  11. JSF has extensible architecture.
  12. International language support.
  13. Extensive tool support (Sun, Oracle , IBM etc.).
  14. Rapid application development approach.

A short view of jsf features has been given above. Its main features are component model, event driven, extensible architecture, rapid application development. All of the features will be described in subsequent topics.

source: roseindia.net

Thursday, August 07, 2008

JSF Versions

JSF started its journey from version 1.0 and now it has come to the latest version of JSF is 1.2. The listing of versions released so far are :

  1. JSF 1.2 (11 may 2006) - Latest release of JSF specification.
  2. JSF 1.1 (27 may 2004) - Bug fix release. No specification changes. No HTML renderkit changes.
  3. JSF 1.0 (11 mar 2004) - Initial release of JSF specification.

There are many releases of 1.1 and 1.2 and these are listed below showing released date also:

  1. 1.2_04 P01 (20 Mar 2007)
  2. 1.2_04 (5 Mar 2007)
  3. 1.2_02 (25 Aug 2006)
  4. 1.2_01 (14 July 2006)
  5. 1.1_02 (24 Apr 2006)
  6. 1.1_01 (07 Sep 2004)

The JSF specification was developed under the Java Community Process (JCP) as JSR 127, which released JSF 1.0 and 1.1, and JSR 252 which released JSF 1.2. The first release of JSF is JSF 1.0 in 2004. JSF 1.0 supports servlet 2.3 and jsp 1.2. After JSF 1.0, JSF 1.1 was released. The main purpose of this release was bug-fixing. There were no specification or HTML renderkit changes. This version also works with same version of servlet 2.3 and jsp 1.2 as in the case of JSF 1.0.

JSF 1.1_01 release features bug fixes and performance improvements. Improvements include compression of views serialized to the client, failover support when storing views on the server, renderer fixes, and several other bug fixes and enhancements.It supports JDK 1.3.1 or later. Many bugs have been fixed so if your application depends on one of these bugs, it needs to be changed.

JSF 1.2 is the latest release and it works with servlet 2.5 and jsp 2.1. If you want to run JSF 1.2 on Tomcat, you want 6.0 not 5.5. So JSF needs a web container that supports atleast servlet 2.3 and jsp 1.2 and these are part of J2EE 1.3.

New in JSF 1.2

In this section we will go through some new features and changes in JSF 1.2 specification. JSF 1.1 was designed for JSP 1.2 and so could not take advantage of newer JSP features and JSP could not be changed to fill the needs of JSF. This resulted in a number of new features and changes. For ex.

  1. Unified Expression Language(EL) :
    Unified EL has been added to JSTL to overcome problems when integrating JSP EL with the JSF EL.EL was used to access data objects in a simple way. It is used mainly as a short-hand for accessing values. Later it was included in JSP 2.0 with more functionality.When JSF was released it also needed EL.JSF and JSP each has its own EL.The JSP EL is much flexibile to the web application developer but JSF people were unsatisfied by the JSP EL.One of the reason was that it requires JSP engine to evaluate expression at the appropriate time during the lifecycle, but JSP expressions are evaluated immediately. The second reason behind it was that JSP functions could only call static methods in TLD and they cannot be used to invoke public methods dynamically on server side objects during lifecycle to validate data and handle component evevts.
    So these were the reasons for developing such an EL that would work for both JSP and JSF and make using JSP and JSF together easier. This new EL is called unified EL. So this was inspired by EL used in JSTL and JSP. There is a package "el" in javax package that represents EL.

    In addition to the features already available in the JSP EL, unified EL has the following features :
    1. Deferred evaluation of expressions i.e.evaluation of the expression at the appropriate time during the page lifecycle from JSP engine.
    2. Support for expressions that can set and get values
    3. Support for expressions that can invoke methods.
    4. A pluggable API for resolving expressions
  2. Ajax Support :
    JSF framework can make things a little easier to write AJAXian JSF components.JSF allows to map different instances of the FacesServlet with different lifecycles.For example, one mapping for standard JSF requests and another for AJAX JSF requests.
  3. New Tree Creation and Content Interweaving Model for Faces applications that use JSP :
    We can make JSF application without using any JSP page but it can also be developed using both JSP and JSF.Using JSP makes some developers easy to handle.Sometimes When integrated it did not respond as we expect. These problems have been resolved in JSF 1.2.There have been made some changes in specification of the implementation of the FacesViewHandler for JSP and JSP custom tag base class.
  4. Integration with JSTL :
    Using JSTL's tag to contain Faces input components was one of the problem, because JSP has no notion of a postback, it was not possible to apply the values correctly to the nested input components on postback. Some new concepts in EL make it possible to use this tag fully with any kind of JSF component.
  5. Back Button issues and Multi Frame or Multi Window Faces Apps :
    JSF have fixed the problem related to Multi Frame or Multi Window applications.The browser back button also created some problems. These problems were because of deficiency in the State Management API.
  6. Associating a message with a particular component in the page :
    Previously we could not include label of a component dynamically in an error message for that component. Now it's possible in new JSF 1.2.It's also possible to override the conversion or validation message that is displayed to the user on a per-instance basis.
  7. Expose an application wide ResourceBundle to the EL :
    element in faces-config allows listing many resource bundles that should be exposed to the EL using the new ELResolver chain.This optimize performance and prevent the need to create a ResourceBundle for every request.
  8. Use of multiple renderKits.
  9. Provide XML Schema for the config files, instead of using DTD.
  10. Security enhancements for client side state saving.
  11. Solve the "duplicate button press" problem.
  12. The portlet related bug-fixes.

JSP 2.1 is developed under JSR-245 and JSF 1.2 is developed under JSR-252. These two groups have experts and they are working independently but the main focus of development was to provide more support and compatibility between these two technology that are powerful web presentation technology so that they can be useful for each other.

source: roseindia.net

Tuesday, August 05, 2008

What is JSF?

In this section "What is JSF?" you will get detailed overview of JSF technology, which is ready to revolutionize the web application development process. JSF is complex system but you will be highly benefited by JSF technology. For example, you can easily make rich graphical Web application that can't be easily developed in HTML. Here we have tried to explain the JSF in easily understandable manner so that beginner can also understand easily.

What is JSF?

JSF is new standard framework, developed through Java Community Process (JCP), that makes it easy to build user interfaces for java web applications by assembling reusable components in a page. You can think of JSF framework as a toolbox that is full of ready to use components where you can quickly and easily add and reuse these components many times in a page and capture events generated by actions on these components. So JSF applications are event driven. You typically embed components in a jsp page using custom tags defined by JSF technology and use the framework to handle navigation from one page to another. Components can be nested within another component , for example, input box, button in a form.

JSF is based on well established Model-View-Controller (MVC) design pattern. Applications developed using JSF frameworks are well designed and easy to maintain then any other applications developed in JSP and Servlets.

JSF eases the development of web applications based on Java technologies. Here are some of benefits of using JSF:

  • JSF provides standard, reusable components for creating user interfaces for web applications.

  • JSF provides many tag libraries for accessing and manipulating the components.

  • It automatically saves the form data and repopulates the form when it is displayed at client side.

  • JSF encapsulates the event handling and component rendering logic from programmers, programmers just use the custom components.

  • JSF is a specification and vendors can develop the implementations for JSF.

  • There are many GUIs available these days to simplify the development of web based application based on JSF framework.

JSF Components

JSF includes mainly:

  1. Set of APIs to represent and manage state of components that helps server side validation, event handling, page navigation, data conversion etc.
  2. JSP custom tag library to create UI components in a view page.
The UI (user interface) created using JSF technology runs on server and output is shown to the client. Goal of JSF is to create web applications faster and easier. Developers can focus on UI components, events handling, backing beans and their interactions rather than request, response and markup. JSF hides complexities to enable developers to focus on their own specific work.

source: roseindia.net

Monday, August 04, 2008

JSF Overview

The quick Overview of JSF Technology

This section gives you an overview of Java Server Faces technology, which simplifies the development of Java Based web applications. In this JSF overview section you will learn how JSF fits into the web application development landscape.

JSF was developed by Java Community Process(JCP). This is a community of web application experts. These experts are from different groups like Jakarta Struts, Oracle, Sun, IBM, ATG etc. They all collectively worked together to take the best from existing technologies and removed problems. So their collective effort brought a new technology named Java Server Faces (JSF).

Java Server Faces or JSF for short, is the standard framework to simplify the process of developing web application in java. It is a robust component framework, event driven programming model. It offers a set of UI components, extensible architecture, supports multiple client devices etc. Extensible means additional functionality can be given on the top of JSF core i.e. we can customize the functionality. JSF is vendor independent technology that is a standard to be supported by whole software industry.

One of the main feature of JSF is that it has not only been designed for coding experts but for others also like :

  1. Page authors
    Web designers have experience with graphic design. They can design look and feel of web application in html/jsp using custom tag libraries of JSF.
  2. Application developers
    Application developers can integrate this design with UI components. They program objects, event handles, converters, validators.
  3. Component writers
    Component developer can build custom UI components because of JSF’s extensible and customizable nature. They can create their own components directly from UI component classes or extending the standard components of JSF.
  4. Application architects
    Application architects are responsible for designing web applications. Defining page navigation, ensuring Scalability of application, configuring beans object registration are the key points that an application architect handles.
  5. Tool vendors
    JSF is well suited for tool vendors, for example Sun Java Studio Creator application development tool, who provide tools that take advantages of JSF to create UI easier.

In the past many web development frameworks came in to existence founded on servlet and jsp. Struts emerged as a standard web application framework. It became framework of choice because it came early in the market and provided necessary features at the time but competitors continued providing additional features that struts lacks. So it became necessary for java to advent new standard framework with a powerful component model. This was the reason for developing JSF technology. So main purpose of developing JSF was to create a collection of APIs for the UI components with the capacity to manage their states, handle events and validation.

Struts has an option to migrate to JSF. The simplest option is to use JSF components and rest as usual. This will enable them to take advantage of third party JSF components. Main feature of JSF is ease of use. Developing web applications is easier and faster than other frameworks like struts because JSF supports UI components and easy event handling. Taking advantages of third party components can reduce the cost of rewriting existing elements, minimize the time of development.


source: roseindia.net

Saturday, August 02, 2008

JSF Introduction - An Introduction to JSF Technology

Java Server Faces or JSF for short is another new exciting technology for developing web applications based on Java technologies. This JSF Introduction section introduces you with cool JSF technology. In this "JSF Introduction" section you will be introduced with the JSF technology, reasons that initiated the development of JSF and the benefits of JSF.

Why JSF?

Let's first understand the reasons that initiated the JSF project and why JSF is so hot these days. There are reasons for development of new framework in-spite of many already existing technologies like JSP, Servlets, Struts etc... If you have developed complex web based applications in jsp then you must be knowing the problem faced with those technologies. Here are the list of some of the problems faced with the previous technologies like JSP and Servlets:

  • Tedious and repetitive coding
    Previous technologies like JSP make programmer to do a lot of tedious and repetitive coding.
  • Directly working with HTTP request and response
    Using these technologies programmers directly work with HTTP request and response objects and manipulates the data. For example if user submits the registration form then programmer writes the code to get the values of each element in the form into a variable for further processing. When there is a need to retrieve the data from database and then show on the form for editing, then in this case programmer writes the code to retrieve the code from database and then set the values in the forms.
  • Non availability of IDE
    Non availability of IDE is another major drawback which affects the programmers productivity and development cost of the projects increases.

JSF changes all that by giving intuitive framework to the developers. Furthermore, JSP is specification and many vendors are developing their own implementations. Both free and commercial implementations of JSF are available these days. You can choose any one of them based on your requirement and budget.

Now a days software vendors are developing IDE for developing JSF based applications which is another good news for the learners of JSF framework. Once you are familiar with the core concepts of the JSF you can kick start the development of software projects using any IDE available in the market. These changes in the programming world makes the life of programmer much easier.

Java Server Faces is a component oriented and event driven framework for web applications. JSF eases the development of GUI for web applications. JSF allows the programmers to work with extensible user interfaces like buttons, text boxes, check boxes etc... Programmer writes the code for particular event such as button clicked. This makes programming much easier and now the there is no need to write request and response processing logic.

source: roseindia.net

Friday, August 01, 2008

JSF - Java Server Faces Tutorials

Complete Java Server Faces (JSF) Tutorial - JSF Tutorials. JSF Tutorials at Rose India covers everything you need to know about JSF.

Our JSF tutorial comes with free source code and configuration files that makes JSF learning easy and fast. You can download all the codes in easy to use zip format from our website. In our JSF tutorials we will describe you how to implement all theoretical concepts of JSF in developing robust JSF web application.

This JSF Tutorial contains readable and interesting content organized in proper and sequential manner. Each concept has been explained by simple examples so that you can understand easily and implement immediately into your java web application. It provides coverage of key JSF concepts such as User Interface(UI) components, Renderers, Backing beans, Validators, Converters, Navigation, Event handling, Expession language, Messages etc...

Java Server Faces (JSF) is a great JAVA technology in the field of web application development. This tutorial at RoseIndia is the best place to go through JSF concepts in easy and sequential way. This tutorial will take you through the basics of JSF to developing robust JSF web applications. This is the complete guide to understand JSF, work flow of JSF, benefits of JSF over existing frameworks. It is natural to think about learning and adopting new framework while there exists some established and popular frameworks in present web development landscape. This tutorial contains all you need to know about this new emerging and robust technology of JAVA. It is the best combination of existing frameworks as it has been developed by taking best features from all and leaving and removing the rest bad. You can think about this fact that it has been developed by JCP (Java Community Process) of web application experts from different groups like Jakarta Struts, Oracle, Sun, IBM, ATG etc. They all collectively worked together to take the best from existing technologies and removed problems. So their collective effort brought a new technology named Java Server Faces (JSF).

Follow the following links to learn JSF fast:

  1. Introduction To JSF
    Java Server Faces or JSF for short is another new exciting technology for developing web applications based on Java technologies. This JSF Introduction section introduces you with cool JSF technology.
  2. JSF Overview
    JSF was developed by Java Community Process(JCP).This is a community of web application experts. These experts are from different groups like Jakarta Struts, Oracle, Sun, IBM, ATG etc. They all collectively worked together to take the best from existing technologies and removed problems.
  3. What Is JSF?
    JSF is new standard framework, developed through Java Community Process (JCP), that makes it easy to build user interfaces for java web applications by assembling reusable components in a page.
  4. JSF Releases
    The JSF specification was developed under the Java Community Process (JCP) as JSR 127, which released JSF 1.0 and 1.1, and JSR 252 which released JSF 1.2. The first release of JSF is JSF 1.0 in 2004. JSF 1.0 supports servlet 2.3 and jsp 1.2. After JSF 1.0, JSF 1.1 was released. The main purpose of this release was bug-fixing. There were no specification or HTML renderkit changes. This version also works with same version of servlet 2.3 and jsp 1.2 as in the case of JSF 1.0.
  5. JSF Features
    JSF is a rich featured framework of JAVA technology. JSF provides a set of standard features that makes it a powerful and standard among the existing technologies available for the development of web application based on java technologies.
  6. How JSF Fits For Web Applications?
    JSF has many advantages over other existing frameworks that makes it a better choice for web application development.
  7. JSF Components
    Components in JSF are elements like text box , button , table that are used to create UI of JSF Applications. These are objects that manage interaction with a user.
  8. JSF Tags
    JSF application typically uses JSP pages to represent views. JSF provides useful special tags to enhance these views. Each tag gives rise to an associated component.
  9. JSF Life Cycle
    Life cycle of a JSF web application starts when user makes a request. On submission of a page various further tasks are performed like validation of data provided in components in the view, data conversion according to types specified on server side .
  10. JSF Architecture
    JSF was developed integrating MVC design pattern so that applications can be designed well with greater maintainability.
  11. JSF 1.2.
    1. JSF 1.2 Tutorials TOC
      Here we will provide you many examples on JSF 1.2, which will help you learn JSF 1.2 (Java Server Faces 1.2) easily. After going through all our JSF 1.2 tutorial you will master JSF 1.2.
    2. New Features in JSF 1.2
      JSF 1.2 is the latest release of Java Server Faces technology. In this section we are discussing the new features of Java Server Faces 1.2 specification.
    3. Installing JSF 1.2 on tomcat
      In this tutorial we will explain you how to install JSF 1.2 on tomcat server. We will develop small web application to test our integrated environment.
    4. Developing Form based application using JSF 1.2
      In this tutorial we will show you how to develop UI forms using JSF 1.2. After completing this tutorial you will be able to develop user entry forms in JSF 1.2 technology.
    5. Using Properties File in JSF
      In this section you will learn how to use properties file in JSF applications to display the message from message source files. We will use the application developed in the last section and modify the application to use properties files.
    6. JSF Form Validation
      In this section on "JSF Form Validation" you will learn how to validate the JSF Form using tag libraries provided along with JSF 1.2 implementation.

    JSF 1.1 Tutorials

  12. JSF Renderers
    After creating JSF components, it is also necessary for each component to be rendered to the client so that it can be visible to the client’s device. Each of the tag gives rise to an associated component .
  13. JSF HTML Tag Reference
    In this section, you will learn more about html tags provided in JSF.
    • JSF column Tag
      This section tells you about the JSF html column tag which is used for creating columns of a table. This tag creates a data column inside a data table.
    • JSF commandButton Tag
      This section illustrates more about commandButton tag in JSF. This tag renders an HTML submit button. This button can be associated with bean.
    • JSF commandLink Tag
      This section illustrates you about the JSF commandLink tag which is rendered as a anchor tag.
    • JSF dataTable Tag
      This tag is used to create table on the page. The component is rendered as an html element.
    • JSF form Tag
      This tag renders html form element which contains the data that is submitted with the form. This tag uses "POST" method.
    • JSF graphicImage Tag
      This section explains about "graphicImage" tag. This displays the image on the page. This tag renders an html "img" element.
    • JSF inputHidden Tag
      This section describes the inputHidden JSF tag. This tag is used to create the field that is invisible to the user.
    • JSF inputSecret Tag
      This section illustrates you more about the JSF HTML inputSecret tag. This tag is used to create a text box for having password that is secret.
    • JSF inputText Tag
      This tag is used to create html input element which has the type "text". It creates input text field where text can be entered.
    • JSF inputTextarea Tag
      This tag is used to render html "textarea" element . It creates input text area where text can be entered in multiple lines.
    • JSF message Tag
      In this section we will explain you JSF message tag. This is used to display the most recent message for the component.
    • JSF messages Tag
      This tag is also like message tag which is also used to show all messages for the components. If you want to customize the message then CSS can be used.
    • JSF outputFormat Tag
      This section illustrates you about the JSF outputFormat tag. This tag is used for showing output with the parameterized text that facility allows you to customize the appearance of the text using CSS styles also.
    • JSF outputLabel Tag
      This is the outputLabel tag which show the text labeled with the specific component created in your application.
    • JSF outputLink Tag
      This is the outputLink which show the output text holding a link of a page or a website location. This link is similar from the link created by the JSF commandLink tag text.
    • JSF outputText Tag
      This is the section in which you can learn more about the tag named outputText tag. This tag is used for creating component for displaying formatted output as text.
    • JSF panelGrid Tag
      This tag is used create compound component that is used to layout other components. This tag renders html table with specified no. of columns.
    • JSF panelGroup Tag
      This is used to create a component that acts as a container to group a set of components. All these components are under one component or can say one parent.
    • JSF selectBooleanCheckbox Tag
      This section explains you creating checkbox by JSF tag. selectBooleanCheckbox tag is used to create checkbox.
    • JSF selectManyCheckbox Tag
      This section is to describe you selectManyCheckbox tag of JSF. It is used to provide the user to select many items from a list of options. The user can select one or more options.
    • JSF selectManyListbox Tag
      This section is dedicated to describe you about selectManyListbox tag. This lets you select more than one options from a set of available options.
    • JSF selectManyMenu Tag
      In this section "selectManyMenu" tag will be discussed. This is used to select more than one items from a set of options.
    • JSF selectOneListbox Tag
      This section describes you about selectOneListbox tag in detail. This is used when you have to allow the user to select only one option from the list.
    • JSF selectOneMenu Tag
      This is the section where you will learn about "selectOneMenu" tag. This is used to display the element that enables the user to select only one among the list of available options.
    • JSF selectOneRadio Tag
      This section is in concern with discussing about "selectOneRadio" tag. This allows the user to select one option from a set of available options.
    • JSF Core Tag Reference
      This section is dedicated to make you understand about JSF Core Tags. All these core tags are contained in JSF Core Tag Library.
      • JSF actionListener Tag
        This tag is used to add a action listener to the component associated with the enclosing tag. When user does an event on the component then this action takes place.
      • JSF attribute Tag
        This tag is used to add attribute to the nearest parent component. This is name/value pair where name takes the attribute name which will be set to the component and value takes the value of the attribute.
      • JSF convertDateTime Tag
        This tag is useful converting date and time according to your format.
      • JSF converter Tag
        This tag is used to register the converter instance on the enclosing component. Many times it is required to convert the input to the appropriate type.
      • JSF convertNumber Tag
        This tag is used to register the NumberConverter instance on the enclosing component.
      • JSF facet Tag
        This tag is used to add a facet to the component means this tag is used to add its child as a facet of the closest parent component.
      • JSF loadBundle Tag
        This tag is used to load the recourse bundle and store it as a map in the request scope.
      • JSF param Tag
        This tag is used to set the parameter to the enclosing component. This tag is helpful in the case of creating the compound message.
      • JSF selectItem Tag
        This tag is used to add a child component to the component associated with the enclosing tag. In this section you will learn about the selectItem tag.
      • JSF selectItems Tag
        This tag is used to add a set of items to the nearest enclosing parent (select one or select many) component.
      • JSF subview Tag
        This tag is used to create the sub-view of the view. It contains all JSF tags in a page that is included in another JSP page. It acts as a naming container so that the components inside it can be made unique.
      • JSF validateDoubleRange Tag
        This is one of the standard validators provided by JSF to check whether the floating point value (or that can be converted to floating point) entered in the corresponding input component is within the certain range.
      • JSF validateLength Tag
        If you want the user to input the number of characters between the certain range, suppose you want the user to fill password of more than 6 characters then this tag can be used to validate.
      • JSF validateLongRange Tag
        This is one of the standard validators provided by JSF to check whether the local value (a numeric value or any string that can be converted to a long.) entered in the corresponding input component is within the certain range.
      • JSF validator Tag
        This tag is used to add and register the validator to the nearest parent component. Typically all applications requires filling some or more information in the page.
      • JSF valueChangeListener Tag
        This tag is used to add a value change listener to the component associated with the enclosing tag. Value change event is fired when the user changes the input value.
      • JSF verbatim Tag
        This tag renders output component (UIOutput) within the closest component. It takes the content from the body of this tag.
      • JSF view Tag
        This tag is used to create the top level view. This acts as a container of all the components that are part of the view of the page.
    • JSF Facelet Tag Reference
      This section is dedicated to make you understand about JSF Facelet Tags. All these Facelet tags are contained in JSF Facelet Tag Library.
      • Facelet component Tag
        This tag is used to add a new component into the JSF component tree as children of UI component instance.
      • Facelet composition Tag
        This is a templating tag and is used for the wrapping the content that can be included in any other facelet. This tag provides some useful features.
      • Facelet debug Tag
        This tag is useful in displaying the component tree and scoped variables. This information will be displayed in a popup window of browser when we press Ctrl+Shift+(a key).
      • Facelet decorate Tag
        This tag is like composition tag. Difference between those is that the content outside of the decorate tag is rendered while it is reverse for composition tag i.e. it is not rendered when we use composition tag.
      • Facelet define Tag
        This tag is used to define the name of the content. This named content can be included within a template. This tag is used within those tags that allows templating like composition and decorate tags.
      • Facelet fragment Tag
        This tag is used to insert the new UIcomponent to the component tree and the content outside of the tag is included to the tree.
      • Facelet include Tag
        This tag is used to include the content of a page. This page name is specified by src attribute of include tag. The page that has been included should use composition tag or component tag.
      • Facelet insert Tag
        This tag is used to replace the content defined in another facelet to the template. This tag takes one attribute that is not a required attribute and is used in conjunction with define tag.
      • Facelet param Tag
        This tag is used to set the parameter to the enclosing component. This tag is helpful in the case of creating the compound message.
      • Facelet remove Tag
        This tag is used to remove content within this tag from a facelet at compile time. This tag don't have any attribute. This tag can be used with jsfc attribute which shows that the particular tag will be removed.
      • Facelet repeat Tag
        This tag is used to iterate over the list of items. The name of list of items is specified by the EL expression in the value attribute of this tag. This tag contains two attributes "value" "name".
    • JSF Installation
      In this section, we will learn about installation of JSF 1.1 to TOMCAT 5.5.23. Java Server Faces (JSF) requires some steps to follow while configuring it in TOMCAT.
    • Simple JSF Hello Application
      This is a simple JSF application that enables even a novice to understand easily the steps to follow to create own JSF application.
    • Download And Install SimpleHello Application
      In the last section we explained how you can develop "SimpleHelloByEnteringName" JSF example. In this, we will show you how you can quickly download and install the source code of the application provided by us.
    • JSF Navigation Example
      Navigation means connected component and it's events each-another. This section illustrates you about the JSF navigation by providing the example with the complete code of the program.
    • JSF Static Navigation Example
      This is a part of navigation in which one page is navigated to others. This section gives you something about the JSF Static navigation which makes the direct navigation between two or more pages.
    • JSF Global Navigation Example
      This is a part of navigation in which one page is navigated to others. This section gives you something about the JSF Global navigation which makes the direct navigation between two or more pages.
    • JSF Search Application Using Ajax
      Here, Roseindia Tutorial Section provides you a JSF search application using Ajax.
    • Custom Converter Example
      This section explains creating custom converter. When the user inputs value to the component, it is simple string value. Now you may be in the need of using this value as a different object like Boolean, Date etc.
    • Managing Bean Example
      This section describes you the use of the managed bean in an JSF application. In an JSF application, backing beans (managed beans) are used that can be associated with UI components.
    • JSF Simple Login Application
      This is the login application in which you will get the complete login facilities whatever should be in a web based application for protecting the page or the website accessibility.
    • JSF Remember Me Login Application
      JSF Login Application for always remember your user name and password on your PC.
    • JSF Validation In Login Application
      This section gives you the best approach for the login application. You have learnt about the login application without validating the application. But in this section you will learn how to validate a form in JSF using it's tags.
    • Integrating Login And Registration Application In JSF
      This tutorial explains integration of login and registration modules into one application. In this application, if the user is valid then it enters successfully otherwise the user is asked to get registered.
    • Enabling and Disabling Button In JSF
      In this tutorial enabling and disabling a button on different conditions has been explained. A button can be disabled setting "disabled" attribute of the commandButton tag to "true".
    • RichFaces: Login & Registration Application:
      Login and Registration is one of the most required module of any project. This tutorial explains how to implement login and registration functionality in your JSF project. The example application in this tutorial is named "RichLRApplication" which uses RichFaces as JSF implementation and library of rich featured components.

      Apache MyFaces JSF Implementation
      JSF provides rich set of components that makes easy and fast to create GUI for web application. JSF is a specification that has been implemented by many venders like Apache, Sun, Oracle etc. Because of several implementations you may not decide which implementation to use.JSF implementations also provides many components and many third party component vendors are available to use components provided by them. Among these many implementations Apache MyFaces implementation provides a lot of components that are typically needed in creating web forms. You would not require to create your own component. Tomahawk is a set of some new and standard components with extended functionality.

      Integrating MyFaces , Spring and Hibernate
      Tutorial presented here discusses the steps to configure Hibernate, Spring and MyFaces to use MySQL Database to build real world User registration and login application.

      Quick JSF Tutorial

      JavaServer Faces or JSF is great technology for the development of user interfaces for web applications. The Java Server Faces specification is defined by JSR 127 of the Java Community Process.

      source: roseindia.net