What Happens When You Configure a Browser’s Context Menu for Command Links

18-10 Web User Interface Developers Guide for Oracle Application Development Framework ■ method: Specify the method that will be used to download the file contents. The method takes two arguments, a FacesContext object and an OutputStream object. The OutputStream object will be automatically closed, so the sole responsibility of this method is to write all bytes to the OutputStream object. For example, the code for a command button would be similar to the following: af:commandButton text=Load File af:fileDownloadActionListener contentType=textplain filename=MyFile.txt method=mybean.LoadMyFile af:commandButton

18.4.2 How to Use a Command Component to Reset Input Fields

You can use the resetActionListener tag in conjunction with a command component to reset input values. All values will be returned to null or empty. If you want to reset the input components to their previous state, which was partially or fully submitted successfully to the server, then you should use a reset button. For more information, see Section 9.2.3, How to Add a Reset Button to a Form . To use the reset tag: 1. Create a command component as documented in Section 18.2, Using Buttons and Links for Navigation .

2. Drag and drop a Reset Action Listener from the Component Palette as a child to

the command component.

18.5 Using Navigation Items for a Page Hierarchy

An application may consist of pages that are related and organized in a tree-like hierarchy, where users gain access to specific information on a page by drilling down a path of links. For example, Figure 18–4 shows a simple page hierarchy with three levels of nodes under the top-level node, Home. The top-level node represents the root parent page; the first-level nodes, Benefits and Employee Data, represent parent pages that contain general information for second-level child nodes such as Insurance and View Employee that contain more specific information; the Insurance node is also a parent node, which contains general information for third-level child nodes, Health and Dental. Each node in a page hierarchy except the root Home node can be a parent and a child node at the same time, and each node in a page hierarchy corresponds to a page. Note: If your application uses the Fusion technology stack with the ADF Controller, then you should use ADF task flows and an XMLMenuModel implementation to create the navigation system for your application page hierarchy. For details, see the Creating a Page Hierarchy section of the Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. Working with Navigation Components 18-11 Figure 18–4 Benefits and Employee Page Hierarchy Navigation in a page hierarchy follows the parent-child links. For example, to view Health information, the user would start drilling from the Benefits page, then move to the Insurance page where two choices are presented, one of which is Health. The path of selected links starting from Home and ending at Health is known as the focus path in the tree. In addition to direct parent-child navigation, some cross-level or cross-parent navigation is also possible. For example, from the Dental page, users can jump to the Paid Time Off page on the second level, and to the Benefits page or the Employee Data page on the first level. As shown in Figure 18–4 , the Help node, which is not linked to any other node in the hierarchy but is on the same level as the top-level Home node, is a global node. Global nodes represent global pages such as a Help page that can be accessed from any page in the hierarchy. Typical widgets used in a web user interface for a page hierarchy are tabs, bars, lists, and global links, all of which can be created by using the navigationPane component. Figure 18–5 shows the hierarchy illustrated in Figure 18–4 , as rendered using the navigationPane and other components. Figure 18–5 Rendered Benefits and Employee Pages