Chapter 9. The CRUD Application Walkthrough

9.1. Using CRUD Application

To run your CRUD Application you should do the following steps:

  • Start JBoss Application Server if it was not started before.

On JBossServer View right click on the JBoss Application Server and select Start

Start the Server

Figure 9.1. Start the Server


  • Run a project on the Server.

On Package Explorer View right click on the crudapp project, select Run As > Run on Server.

Run Project on Server

Figure 9.2. Run Project on Server


Select a Server and click Finish

Select a Server

Figure 9.3. Select a Server


Home page of the crudapp project should appear in Web Browser.

Home page

Figure 9.4. Home page


After that you can use CRUD application with "employee" database.

You can use internal JBDS Web Browser or your external Web Browser with the same link (http://localhost:8080/crudapp/home.seam).

Click on the Employees List link and observe that data from employee database is displayed.

Employees List

Figure 9.5. Employees List


Use Employees search parameters fields to filter the selected list.

Press Select opposite one of employees.

Employee details

Figure 9.6. Employee details


Press Edit to edit employee fields.

Enter Login and Password to login. (Use "crudapp-user"/"secret" for example)

Login page

Figure 9.7. Login page


Edit Employee

Figure 9.8. Edit Employee


Fill in firstname and press Update.

Database will be updated.