Search⌘ K

Develop the Mock User Interface

Explore how to develop a mock user interface that interacts with an in-memory service for one-to-many self-referencing category data. Learn to implement JavaScript methods for loading data, creating, updating, editing, viewing, and deleting category records including parent relationships.

In the previous section, we learned how to create the mock service with an in-memory data storage. Now we will learn how to write the user interface, which will use this mock service. The user interface will have the means to add, edit, delete, and show all records related to the Category including the parent. A screenshot of the user interface is shown in Figure 8-2.

JSP page

The JSP body is the first page ...