Starting from:

$25

SWE645-Assignment 4 PrimeFaces, RESTful Web Service, and Ajax Solved

This assignment is an extension of the application you developed in previous assignment. In this case, you will re-implement all .xhtml files where you will replace <h: tags by <p: tags, to the extent possible, using PrimeFaces UI library. This includes using the look and feel of default theme of PrimeFaces. You are more than welcome to use any other PrimeFaces theme if you so prefer. In addition, you will develop RESTful web services that returns city and state given a zipcode. An asynchronous call to the RESTful web service should be used to automatically populate city and state based on zipcode entered by the user. The homepage of the application will have menu with links from the previous assignment: 1) Student Survey, which allows a prospective student to fill out a survey form, and 2) List All Surveys, which allows a user to view all surveys done to date. You can try other features of PrimeFaces, such as tabs. 

 

You should continue to use the Amazon EC2 with a Tomcat server (which you provisioned in previous homework) to deploy your application. Also, please add a hyperlink of HW4 solution on your homepage on Amazon S3. 

 

The following are more specific requirements of this application. 

 

Requirements:  

 

For this assignment, you will be extending the Student survey web based application with PriceFaces and RESTful web services as specified below: 

 

Student Survey Client (User Interface): 

 

You will continue to use the student survey user interface that you developed for the last assignment to create new records, except as follows: 

•        Re-implement all .xhtml files by replacing <h: tags to <p: tags to the extent possible using PrimeFaces. 

•        Replace dropdown list by auto-complete 

•        Telephone number should use input mask (999) 999-9999 

•        Date fields should have popup calendar 

•        Replace h:messages or h:message (depending on how you implemented in the last assignment) with p:messages or p:message 

•        Add another date field on the form that will be used by the surveyor to provide a possible start date of the semester when the student gets admission. Implement a validation rule to ensure that the semester start date is not less than the survey date 

 

 

•        City and state should be automatically populated based on zip code. This should be implemented using JSF’s built-in ajax support with <f:ajax ……… and related tags. 

•        Implement a RESTful web service that returns city and state given a zipcode. You can limit the following zipcode, city, and state combination for implementation and testing. 

 

zip: 22312, city: Alexandria, state: VA  zip: 22030, city: Fairfax, state: VA  zip: 22301, city: Tysons Corner, state: MD  zip: 20148, city: Ashburn, state: VA 

 

Note: Here is a blog on JAX-RS Web Services deployment on Tomcat using Jersey that you might find useful. 

 

https://java2blog.com/create-restful-web-servicesjax-rs-using/

  and a useful youtube link: 

https://www.youtube.com/watch?v=AWrKBJ8mHz0

 

More products