I need to create a Guestbook application, a JSF web app that allows users to sign and view a guest book. Use the Guestbook database to store guestbook entries. [Note: A SQL script to create the Guestbook database is attached.] The Guestbook database has a single table, Messages, which has four columns: Date, Name, Email and Message. The database already contains a few sample entries.
Using the AddressBook app as a guide, create two Facelets pages and a managed bean. The [url removed, login to view] page should show the Guestbook entries in tabular format and should provide a button to add entry to the Guestbook. When the user clicks this button, display an [url removed, login to view] page. Provide h: inputText elements for the user’s name and email address, an h: inputTextarea for the message and a Sign Guest button to submit the form.
When the form is submitted, you should store in the Guestbook database a new entry containing the users input and the date of the entry.