There is a great set of open source Java EE 7 samples available on Github. Kevin Sutter recently wrote about how to run these samples on WAS Liberty.

We’ve now tested a subset of the Java EE 7 samples that relate to JSF on the WAS classic beta. You can clone and build these samples using GIT and Maven.

In order to be able to build and deploy those Java EE 7 Samples you need to do a few things (see the readme in Github for full instructions):

Install git

Install maven

Clone the repository and build

For the WAS classic beta the following samples have been tested and verified to be working:

ajax

Drive a request to: http://hostname:port/ajax/faces/index.xhtml and enter a user and password (both user and password must be the same) and press the Login button. You should be able to see a message Login successful .

Drive a request to: and enter a user and password (both user and password must be the same) and press the Login button. You should be able to see a message . composite-component

Drive a request to: http://hostname:port/composite_component/faces/index.xhtml and enter a random user and password and press submit button. You should be able to see a message with the user and password you entered.

Drive a request to: and enter a random user and password and press submit button. You should be able to see a message with the user and password you entered. contracts

Drive a request to: http://hostname:port/contracts/faces/index.xhtml and choose a template between red and blue and apply it. You should be able to see a change in color on the header.

Drive a request to: and choose a template between red and blue and apply it. You should be able to see a change in color on the header. contracts-library

Drive a request to: http://hostname:port/contracts_library/faces/index-blue.xhtml and click the red contract link. You should be able to see a change in color on the header.

Drive a request to: and click the link. You should be able to see a change in color on the header. flows-declarative

Drive a request to: http://hostname:port/flows_declarative/faces/index.xhtml and select flow 1 or flow 2 and play with it a little. You should not see any exceptions.

flows-simple

Drive a request to: http://hostname:port/flows_simple/faces/index.xhtml and select flow 1. This is a simple version of flows-declarative .

radio-buttons

Drive a request to: http://hostname:port/radio_buttons/faces/index.xhtml and select one of the radio buttons, then press Show Details button, you should be able to see more details.

resource-handling

Drive a request to: http://hostname:port/resource_handling/faces/index.xhtml and you should be able to see that a few resources are being used.

viewscoped

Drive a request to: http://hostname:port/viewscoped/faces/index.xhtml and enter a number in the input text, then press Next button and you should be able to see that the number is preserved in the view scope.

The working samples mean you can test some of the new JSF 2.2 functionality in WAS classic and get familiar with the new features such as Faces Flows and Resource Library Contracts.