Work in JDeveloper's IDE to create the pages and task flow that comprise the view and navigation portion of your application.
Create the Page Flow: Use the Create Task Flow dialog to create the page flow as a bounded task flow.
Create a JSF Page: Use the Create JSF Page dialog to create a JSP XML Document with the starter page structure.
Create a Browse Page: Use the Data Controls panel to add a read-only form and read-only table to a page.
Create an Edit Page: Use the Data Controls panel to add an editable form and commit button to a page.
Run the Application: Test run the JSF files from the browse page to see how the pages display and can be edited in a browser.
An ADF task flow includes the view activities and control flow rules that define an application's page flow. There are two types of task flows: bounded and unbounded. A bounded task flow has a single entry point and zero or more exit points; it contains its own set of private control flow rules, activities, and managed beans. An unbounded task flow is for top-level application flows; it consists of all activities and control flows in an application that are not included within any bounded task flow. A typical application is a combination of an unbounded and one or more bounded task flows. [ tell me more...]
orders-flow.xmlas the file name.
By using a task flow diagram you can plan out the pages in your application and define the navigation rules for users to navigate between the pages. [ tell me more...]
goEditfor the outcome label.
goBrowsefor the outcome label.
A transaction is a persisted collection of work that can be committed or rolled back together as a group. You can use an ADF bounded task flow to represent a transactional unit of work and to declaratively manage transaction boundaries. After creating a basic unbounded or bounded task flow and adding task flow activities to it, you can perform specialized tasks such as transaction management and reentry. [ tell me more...]
commitis the value for the id and Outcome Name properties. Expand the Behavior section. Then select commit from the End Transaction property dropdown list.
savefor the outcome label.
calling-flow.xmlas the file name. Confirm that Create as Bounded Task Flow is selected, and deselect Create with Pa ge Fragments . Then click OK.
calling-flow.xmlpage in the editor window.
The first task flow, orders-flow.xml, contains two view activities: browseOrders and editOrders, plus a control flow from browseOrders to editOrders and another in the opposite direction. It also contains a task flow return and a control flow from editOrders to commit. The first activity you dropped is the default, as indicated by the green halo or circle. Currently the task flow does not do anything: the warning ! icon on each view activity indicates that the view activity is not bound to any page. Later you will tie a page to each view activity, and add a button to each page that executes the control flow, and navigation. [ tell me more...]
The JSF pages you create for a web application using JavaServer Faces and ADF Faces are JSP documents (which have the file extension
.jspx) or JSP pages (which have the file extension
tell me more...]
browseOrders.jspx. Under Initial Page Layout and Content, select Quick Start Layout . Then click Bro wse .
ADF Faces provides a number of components that you can use to define the overall layout of the page. JDeveloper includes pre-defined page layouts that use these layout components to provide you with a quick and easy way to correctly determine the layout of your pages. [ tell me more...]
Browse Ordersin the Title field and press Enter.
To create the user interface, you add ADF Faces components to your pages. [ tell me more...]
The blank page of
browseOrders.jspx is displayed in the visual editor. [
tell me more...]
The role of the browse page is to allow the user to view and navigate the data objects, one at a time. You will add databound components to the
browseOrders.jspx page to create a read-only form and table. Both the read-only form and read-only table supply the master/detail functionality in this browse page. At runtime, the orders are shown one at a time, with the order information in the read-only form, and the order's line items in the read-only table. [
tell me more...]
The Data Controls panel comprises a hierarchical display of available business objects, methods, and data control operations. [ tell me more...]
Edit Orderas the Text property. Then select goEdit from the Action property dropdown list.
AFStretchWidthand press Enter.
When you create the browse page, the page should look like this in the visual editor: [ tell me more...]
ADF drag-and-drop data binding allows you to bind visual components on a page to data or to actions. You will use both techniques: you will create a form to edit orders data; and you will bind a button for the commit action. [ tell me more...]
editOrders.jspx. Under Initial Page Layout and Content, select Blan k Page . Then click OK.
Edit Ordersin the Title field and press Enter.
By specifying save for the button's Action property, you call the task flow return activity that commits the transaction to the database. [ tell me more...]
Savefor the Text property. Under Button Action, select save from the Action property dropdown list.
Returnas the Text property. Then select goBrowse from the Action property dropdown list.
When you create your edit page, the page should look like this in the visual editor: [ tell me more...]
You will configure your application to allow for insertion of new data into the database. First, you will select the Create operation from the Data Controls panel and place it on the browse page as a button. [ tell me more...]
New Orderfor the Text property.
0in the Default Value field.
You can also use the
Entity Attribute page of the Attribute Editor to set up default values for required fields. This reduces the number of steps you have to remember when creating a new row. You can either enter literal values (for example,
'31-JUL-2010'), or use Groovy expressions for more sophisticated defaulting. [
tell me more...]
ADF Business Components can help you keep track of common auditing information, including time stamps for when a row was created or edited, the authenticated user who performed that action, and incrementing a version number with each change. You can use the Entity Attribute page of the Attribute Editor to map existing database columns in your table to these intrinsic values that ADF Business Components will populate for you. [ tell me more...]
adf.currentDatein the Value field . Then click OK.
When you add the button to your browse page, the page should look like this in the visual editor: [ tell me more...]
You can compile several nodes in an application in any combination: the entire application, an entire project, or specific files. To start the compiler, you will right-click a node in the Application Navigator and choose either Make or Re build . [ tell me more...]
The JDeveloper IDE includes a Java EE runtime service for packaged archive deployment called Integrated WebLogic Server. Based on zero-copy deployment, Integrated WebLogic Server lets you run and test an application and its projects as a Java EE application in a Java EE container. Integrated WebLogic Server instances can be bound to applications and then started, stopped, and debugged. [ tell me more...]
108for CustomerId, and
5for ShipToAddressId). Then click Save.
When you run the
browseOrders.jspx page, it should look similar to this page in your browser: [
tell me more...]
Copyright © 1997, 2009, Oracle. All rights reserved.false ,,,,,,,,,,,,,,,