Taking a Look at the Supplier Module Code Touring the Supplier Module

Introduction to Building Java EE Web Applications with Oracle ADF 1-7

1.3.2 Taking a Look at the Supplier Module Code

Once you have opened the projects in Oracle JDeveloper, you can then begin to review the artifacts within each project. The Model project contains the Java classes and metadata files that allow the data to be displayed in the web application. The oracle.fodemo.common project contains components used by multiple classes in the application. The oracle.fodemo.supplier project contains the components used to access the supplier data. Figure 1–3 shows the Model project and its associated directories. Figure 1–3 The Model Project in JDeveloper The ViewController project contains the files for the web interface, including the backing beans, deployment files, and JSPX files. The Application Sources node contains the code used by the web client, including the managed and backing beans, property files used for internationalization, and the metadata used by Oracle ADF to display bound data. The Web Content node contains web files, including the JSP files, images, skin files, deployment descriptors, and libraries. Figure 1–4 shows the ViewController project and its associated directories. 1-8 Java EE Developers Guide for Oracle Application Development Framework Figure 1–4 The ViewController Project in JDeveloper

1.3.3 Touring the Supplier Module

The Supplier module contains eight main pages that allow a user to perform the following functionality: ■ Search for products: The browse.jspx page allows a user to search for products. Search results are displayed in a table. Figure 1–5 shows the search form on the browse page. Figure 1–5 Search Form in Supplier Module – For information about creating search forms, see Chapter 7, Creating Databound Search Forms. Introduction to Building Java EE Web Applications with Oracle ADF 1-9 ■ Edit row data in a table: From the table on the browse.jspx page, a user can select a product and choose Update to navigate to the productInfo.jspx page clicking the product link also navigates to this page. From the table, a user can also click Remove, which launches a popup that allows the removal of the selected product. Figure 1–6 shows the table on the browse page. Figure 1–6 Table on the browse Page – For information about creating tables, see Chapter 4, Creating ADF Databound Tables. – For information about creating navigation in an application, see the Getting Started with ADF Task Flows chapter of the Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. – For information about using buttons to edit a row in a table, see Section 4.3, Creating an Editable Table. ■ Edit row data in a form: From the productInfo.jspx page, a user can change the data for a row. A selection list contains valid values for the product status. The Choose File button allows a user to upload a graphic file, which is then displayed below the form. Figure 1–7 shows the productInfo page. Figure 1–7 The productInfo Page – For information about creating a basic form, see Section 3.3, Creating a Basic Form. – For information about creating a form from which a user can edit information, see Section 3.6, Creating a Form to Edit an Existing Record. – For information about creating selection lists, see Section 6.2, Creating a Single Selection List. 1-10 Java EE Developers Guide for Oracle Application Development Framework – For information about using file upload, see the Using File Upload section of the Oracle Fusion Middleware Web User Interface Developers Guide for Oracle Application Development Framework. – For information about displaying graphics, see the Displaying Images section of the Oracle Fusion Middleware Web User Interface Developers Guide for Oracle Application Development Framework. ■ The Add Supplier link takes the user to a series of pages contained within the regisrationDetails.jspx page that are used to create a new supplier, as shown in Figure 1–8 . Figure 1–8 Create a Supplier Train – For information about creating a train, see the Creating a Train section of the Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. – For information about creating forms that allow users to create new records, see Section 3.7, Creating an Input Form. ■ Log in to the application: The login.jspx page allows users to log in to the application. For more information, see the Enabling ADF Security in a Fusion Web Application chapter of the Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. 2 Using ADF Model Data Binding in a Java EE Web Application 2-1 2 Using ADF Model Data Binding in a Java EE Web Application ADF Model is a declarative data binding facility that implements the JSR-227 specification. This specification provides an API for accessing declarative data binding metadata. The ADF Model layer enables a unified approach to bind any user interface to any business service with no code. This chapter provides a brief overview of ADF Model data binding. For more comprehensive information about using ADF Model data binding, refer to the Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. This chapter includes the following sections: ■ Section 2.1, Introduction to ADF Model Data Binding