This chapter will expand the book store application we developed the services for in Chapter 9, Book Store – CDI Services, by developing a user interface for the customer and administrator using two different technologies. This will enable us to see how CDI services can be reused to create two distinct user interfaces.
The customer user interface will be developed with AngularJS, though it could have been developed with any other JavaScript or view technology currently available. It will interact with CDI through REST to retrieve and store the data as required.
The administration interface will instead be developed with JSF2 and RichFaces for additional components for our interface. We will develop CDI beans for use in the JSF views to interact with our services, as we deem necessary.
Note
AngularJS information can be found at http://angularjs.org/.