An Oracle JDeveloper How To Document
Written by Jonas Jacobi
This HowTo demonstrates how to build an ADF UIX application that contains a messageChoice (or drop down list) component with Oracle JDeveloper 10g. This HowTo will show you how easy it is to create a messageChoice component with values that our dynamically populated in Oracle JDeveloper 10g. For more information and HowTos, please, refer to the JDeveloper HowTo documents on Oracle Technology Network (OTN). For this simple application we are using ADF UIX, Struts, and ADF Business Components.
This session covers the following tasks:
In order to follow this HowTo and build this ADF UIX application you need the Oracle JDeveloper 10g production, and an Oracle database with the sample HR schema installed.
Before we go on the path to create our views and pageflow we need some where to store our work in progress.
This is the first solution to pass string value from one page to another, and in this case the Java bean (and value) will exist during the entire session, whereas the second solution, which is covered later in this HowTo, the value only exist during the request.
This section is just going to cover how to generate a Java bean and make some small changes to it needed for this HowTo.
The first step in our application is to create a Struts pageflow
In the DataControl Palette you should see a list of all available data controls in your Application Workspace. In our case we can see one data control mapping to our Business Components - AppModule - in our Model project.
Note: If the Data Control Palette is not visible you can open the palette from the JDeveloper View menu.
We now have a page called main.uix, and we would like to add a messageChoice field to this page for the Departments Id. This field will be used to enter and change the department for a particular employee. The messageChoice field should display the ID and Name of the department to make it easier the select the right department.
When you drag and drop your messageChoice component on to the page the List Binding Editor will be launched. In this editor there are two options Enumeration and LOV mode. In Enumeration mode you can type in values directly for your component. With LOV mode you can have a data control as the source for your component.