After installing JDeveloper 126.96.36.199, launch jdeveloper.exe from <JDEV HOME>/jdeveloper.exe(it is present under C:\Oracle\Middleware\jdeveloper directory on my machine) and select “Default Role”. JDeveloper supports various technologies. To develop ADF applications, we need to select Default Role. In higher versions of JDeveloper, select “Studio developer” role.
You can uncheck the checkbox so that once you start the jdeveloper again, you will not see this window again and click the Ok button:
If the developer wants to change the role later, he/she can go to Tools -> Preferences -> Roles.
Next Step is to create an Application. Click on New Application:
Enter the Application Name as HelloWorld and Select Application Template as Fusion Web Application (ADF). All Application related files including database related configurations are stored in the “Directory” path. “Application Package Prefix” is the directory structure in the physical file system and Click Next:
The advantage of using the template is: it will by default give you the Model and ViewController Projects and the technology components will be selected by default i.e. ADF Business Components and Java for Model as shown in the screenshot below. Click Next:
In some organizations, there may be certain naming conventions followed for placing the java files and class files. In this blog series, we will keep the default path as shown in the screenshot below. Click Next:
Next is ViewController Project. In this Project, you can see from the screenshot below that the technologies selected by default are used for UI development since this project is the View part in MVC architecture. Click Next:
The last step is the Java Preferences for the ViewController. Click Finish:
You will get the application opened as shown in the screenshot below:
adfc-config.xml is the default controller for your ADF based application. All the pages created in ADF application will be created in adfc-config.XML
faces-config.xml is the default controller file for your JSF applications.
trinidad-config.xml defines the look and feel of the application. You can change the stylesheet here.
web.xml is the configuration file that is typically used for web based applications.
You can check the physical file location of the application by simply hovering the mouse over the application name:
In the screenshot above, HelloWorld with the JDeveloper icon is the jws(Java WorkSpace) file of the application. You can see that a folder is created for each application as well. The other two folders(.adf and src) will be seen in the “Application Resources” in JDeveloper as shown in the screenshot below:
WebLogic-application.xml is used for Application Deployment.
Now we will create a simple front end page which will display Hello World. Expand ViewController Project, Double Click on adfc-config.xml file, search View in Component Palette, Drag and Drop View in adfc-config.XML file, and rename the view as HelloWorld:
Double Click HelloWorld view. Oracle Three Column Layout is the default layout provided by Oracle. Click Ok:
On the right side, Enter “Label” in the Component Palette and Click on Output Label:
On the right bottom, Go to Property Inspector -> Value -> Change the value to “Hello World” and press Enter:
Click on “Save All” icon, right click on HelloWorld.jspx file, and click Run:
Output(Hello World is displayed on the right side of the screen):