Build a Bookmarkable Edit Page with JDeveloper 11gPurposeIn this tutorial, you use Oracle JDeveloper 11g to build a web application that allows the bookmarking of URL. Based on a predefined application, you implement a functionality that enables to bookmark an edit page from a Browse / Edit type of application. The data model uses Business Components. For the web client, Java Server Faces (JSF) is used. A browse page and an edit page are included in the user interface. 20 minutes The tutorial covers the following topics:
Viewing Screenshots
Note: Alternatively, you can place the cursor over an individual icon in the following steps to load and view only the screenshot associated with that step. You can hide an individual screenshot by clicking it. The model is provided by business components, while the view and controller are provided by Java Server Faces. The predefined application includes two pages, a Browse page and an Edit page. The Browse page provides the list of departments and allows you to select a department from the list to edit the department details. The Edit page displays the department details. The problem is that when the edit page is displayed for a specific department, the URL in the address is still referencing the entry point of the application (the Browse page). This default behavior stops from being able to bookmark the Edit page reference. ScenarioIn order to make the Edit page bookmarkable, you add an action listener to the Edit button of the Browse page. In the Edit page, you use a method defined in a managed bean and set the bookmark properties providing the ability to to bookmark the record information based on the currentRowKeyString value. Before starting any section of the tutorial, you should:
Downloading the Required Components and Start JDeveloper 11g In the following steps, you download JDeveloper 11g and other files required for this tutorial.
Uploading the Starter Application Before you create any component, you must first open the startup application. To do this, perform the following steps:
Creating a Database Connection You need to create a Database Connection to the HR schema. To do this, perform the following steps:
The startup application uses Departments and Employees entity objects and their corresponding view objects.
To be able to provide bookmarkable information about the selected department in the browse page, you add an action listener that holds the referenced department based on the currentRowKeyString property. To do this, perform the following steps:
Pages have bookmark properties allowing you to propagate into the URL of the linked page the reference of the current row. For this purpose we use a managed bean holding the current row value. To do this, perform the following steps:
You now use JDeveloper's JSF Navigation Modeler to diagrammatically plan and create your application's pages, and the navigation between them.
In this tutorial, you learned how to:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bookmarkable Pages
id="portalIFrame" title="" src="file:///I:/others/%E5%8E%9F%E7%94%B5%E8%84%91%E8%B5%84%E6%96%99/%E5%9F%B9%E8%AE%AD%E6%95%99%E6%9D%90/ADF/Hands-on%204%20-%20Bookmarkable%20Pages/Hands-on%204%20-%20Bookmarkable%20Pages/url_bookmark_files/pobtrans.gif" width="0" frameborder="0" height="0" style="font-family: Simsun;font-size:14px;">