Javatpoint Logo
Javatpoint Logo

RichFaces Application

1) After adding JARs, create a JavaServer Faces project and integrate this library to the project.

RichFaces Application 1

Selecting project type as Web Application.

RichFaces Application 2

Providing project name.

RichFaces Application 3 RichFaces Application 4 RichFaces Application 5

Selecting Framework as JavaServer Faces.

2) Now select library that we have created earlier in the example.

RichFaces Application 6

After finishing, Our project structure should look like the following.

RichFaces Application 7

Well, it is all about configration. There is nothing we actually need to do to configure RichFaces. If we look inside the web.xml file in the generated project, we will see no mention of a RichFaces filter. Starting with RichFaces 4, we don't need to register a filter in the web.xml ?le. If RichFaces JARs are present in the project, RichFaces will be used.

This project contains two default xhtml files. First is index.xhtml and second is welcomeRichfaces.xhtml. These two files have the following code.

// index.xhtml

// welcomeRichfaces.xhtml

3) Run the project

RichFaces Application 8

After running the index.xhtml file. It produces the following output:

RichFaces Application 9

After clicking on the link, it redirects to the welcomeRichfaces page.

RichFaces Application 10




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA