RichFaces v4.3.1 Integration

This samples demonstrates RichFaces JSF component framework integration through a simple phone book Web application deployed to Liberty. The sample provides the ability to manage phonebook users and work with phonebook entries.

This sample can be installed onto runtime versions and later.

Installation Instructions

Online installation (requires or later):

  1. Install the sample by running the command below from the bin directory of your server installation:
    installUtility install RichFacesSample

Any missing features required by the server will be installed for you.

Offline installation:

  1. Download the RichFacesSample.jar using the download button at the top of the page and place it in the root of your server installation.
  2. Extract the sample into the Liberty installation by running the command below from the root of your server installation:
    java -jar RichFacesSample.jar

Any missing features required by the server will need to be installed separately.

Running The Application

  1. Start the RichFacesSample server by running the command 'bin/server run RichFacesSample' from the root of the Liberty profile installation, and confirm the application started by looking in the console output:
    CWWKZ0001I: Application PhoneBookByRichFaces started in XX.XX seconds.
  2. In your browser, enter the URL for the application: http://localhost:9109/PhoneBookByRichFaces/ (where port 9109 assumes the httpEndpoint provided in the sample server.xml has not been modified).
  3. In your browser, you should see the phone book displayed.


This sample does not include the open source dependencies. The installer will provide a list of the open source pre-requisite libraries and where they can be downloaded from. To help obtaining these libraries, the installer provides the option to download them on your behalf.

Sample Structure

  • wlp
    • usr
      • servers
        • RichFacesSample
          • Copyright.txt
          • apps
            • PhoneBookByRichFaces-1.0.0.war
              • WEB-INF
                • classes
                  • com
                    • ibm
                      • ws
                        • samples
                          • richfaces
                            • bean
                              • PhoneBookBean.class
                              • PhoneBookEntry.class
                              • UserBean.class
                            • manager
                              • MockPhoneBookManager.class
                              • MockUserManager.class
                              • PhoneBookManager.class
                              • UserManager.class
                • lib
                  • guava-11.0.2.jar
                  • hibernate-validator-4.2.0.Final.jar
                  • jsr305-1.3.9.jar
                  • richfaces-components-api-4.3.1.Final.jar
                  • richfaces-components-ui-4.3.1.Final.jar
                  • richfaces-core-api-4.3.1.Final.jar
                  • richfaces-core-impl-4.3.1.Final.jar
                • templates
                  • template.xhtml
                • web.xml
              • createUser.xhtml
              • default.xhtml
              • showPhoneBook.xhtml
          • lafiles
            • LA_en
            • LI_en
          • readme.html
          • server.xml