Specifying Tab Navigation Behavior for a Page Group

4-22 Oracle Fusion Middleware Users Guide for Oracle Portal The resulting URL would appear in the browser’s address bar just as it would for those URLs handled by the middle-tier rewrite rule, that is: http:mymachine.mycompany.com:5000mycompanypage1 To specify a URL rewrite rule for the page group: 1. Log in to Oracle Portal.

2. Click the Build tab to bring it forward.

3. From the Page Groups portlet Work In drop-down list, select the page group.

By default, the Page Groups portlet is located on the Build tab of the Portal Builder page.

4. Click the Configure link.

5. Click the Configure tab to bring it forward.

6. Click the Edit link in the URL Rewrite Rules section.

7. In the Search pattern field, enter the portion of the page group URL you will

replace. For example: portalpagemycompany_dadmycompany_pgrp

8. In the Replace pattern field, enter the character or characters that will replace the

Search pattern. For example: mycompany

9. Click OK to save your changes and return to the Configure tab.

10. Click Close.

4.5.8 Enabling and Disabling Parameters and Events for a Page Group

A parameter is a value that is passed between pages and portlets. There are two types of parameters: ■ Page parameters – Pages can accept and store parameter values. ■ Portlet parameters Portlets can: – Read page parameter values – Update page parameters in response to an event – Read parameter values from another portlet using an application programming interface, API An event is a user action defined by a portlet developer. User actions include clicking a link, a button, or another control on a Web page. A page designer can specify that an event forces the reloading of the current page or the loading of another page, and optionally passes parameters to the newly loaded page. A portlets events are specified in the provider.xml file. Working with Page Groups 4-23 For more information about parameters and events, see Chapter 22, Using Parameters and Events . When a page group is created, parameters and events are enabled by default. When they are enabled, page designers can add parameters to pages in a selected page group and use the portlet parameters and events that are associated with the portlets placed on pages in the page group. When they are disabled, the use of parameters and events is not allowed, and none of the tabs and fields associated with them display in the user interface. To enable or disable parameters and events in a page group: 1. Log in to Oracle Portal.

2. Click the Build tab to bring it forward.

3. From the Page Groups portlet Work In drop-down list, select the page group.

By default, the Page Groups portlet is located on the Build tab of the Portal Builder page.

4. Click the Configure link.

5. Click the Configure tab to bring it forward.

6. In the Parameters and Events section, click the Edit link.

7. On the resulting page: ■ Select Enable Parameters and Events to enable the use of parameters and events in the current page group. ■ Clear Enable Parameters and Events to disable the use of parameters and events in the current page group.

8. Click OK to return to the Configure tab.

9. Click Close.

4.5.9 Enabling JavaServer Page Access to a Page Group

To make JavaServer Pages JSPs more useful within your portal, you may wish to add portlets to them. Before you can add portlets to JSPs, you must first enable JSP access to the JSP’s page group. Additionally, to use Oracle Portal portlets, you must publish the portlets externally. An externally published portlet is a portlet that has been explicitly made available for users to add to their JSPs. Finally, you reference the portlet by the name you gave it when you published it externally. Reference externally published portlets using JSP tags, such as portal:showPortlet. This section provides information on enabling JSP access to a page group and publishing portlets externally. It contains the following subsections: ■ Section 4.5.9.1, Enabling JSP Access ■ Section 4.5.9.2, Publishing a Portlet Externally ■ Section 4.5.9.3, Additional JSP Information For information about adding portlets to JSPs, including using Oracle JSP tags, see Integrating Java Server Pages with Oracle Portal, on the Oracle Technology Network: http:www.oracle.comtechnologyproductsiasportalpdfpd_ jsps_10g.pdf