Mojarra v2.1.20 Integration
Description
This samples demonstrates the use of the Mojarra JSF
implementation through a simple phonebook Web application deployed to
Liberty.
This sample can be installed onto runtime versions 8.5.5.0 and later.
Instructions
- Install the packaged server by typing 'java -jar
MojarraSample.jar' and following the instructions.
- Start the MojarraSample server by running the command
'bin/server run MojarraSample' from the root of the Liberty
profile installation, and confirm the application started by looking
in the console output:
CWWKZ0001I: Application PhoneBookByMojarra started in XX.XX seconds.
- In your browser, enter the URL for the application: http://localhost:9106/PhoneBookByMojarra/
(where port 9106 assumes the httpEndpoint provided in the sample server.xml has not been modified).
- In your browser, you should see the phone book displayed.
Notes
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
- MojarraSample
- Copyright.txt
- apps
- PhoneBookByMojarra-1.0.0.war
- WEB-INF
- classes
- com
- ibm
- ws
- samples
- jsf
- bean
- PhoneBookBean.class
- PhoneBookBean.java
- PhoneBookEntry.class
- PhoneBookEntry.java
- UserBean.class
- UserBean.java
- manager
- MockPhoneBookManager.class
- MockPhoneBookManager.java
- MockUserManager.class
- MockUserManager.java
- PhoneBookManager.class
- PhoneBookManager.java
- UserManager.class
- UserManager.java
- lib
- jsf-api-2.1.20.jar
- jsf-impl-2.1.20.jar
- web.xml
- createUser.xhtml
- default.xhtml
- resources
- showPhoneBook.xhtml
- showUsers.xhtml
- bootstrap.properties
- lafiles
- readme.html
- server.xml
External Dependencies
The table below shows the dependencies that are required for: Grails pre-requisite libraries..
Target install path |
Source URL |
servers/MojarraSample/apps/PhoneBookByMojarra-1.0.0.war/WEB-INF/lib/jsf-api-2.1.20.jar |
https://maven.java.net/content/repositories/releases/com/sun/faces/jsf-api/2.1.20/jsf-api-2.1.20.jar |
servers/MojarraSample/apps/PhoneBookByMojarra-1.0.0.war/WEB-INF/lib/jsf-impl-2.1.20.jar |
https://maven.java.net/content/repositories/releases/com/sun/faces/jsf-impl/2.1.20/jsf-impl-2.1.20.jar |
Support Information
For further information and resources for developers using IBM
WebSphere Application Server, please visit wasdev.net.