8 Wiring Pages, Task Flows, Portlets, and UI Components

Often a page needs information from a component on the page or a region needs information from another region. While you can pass parameters through the page URL to obtain that information, doing so makes sense only when the parameters are well known and the inputs are EL-accessible to the page. (See Section 8.5, "Passing Parameter Values Through the Page URL.")

Consider the case where you have a task flow with multiple page fragments that contain various interesting values that could be used as input on a page in the flow. For example, consider a page devoted to the display of information specific to the company that a user specifies in an input form. If you were to use parameters to pass the value, the task flow must surface output parameters for the union of each of the interesting values on each and every fragment. This is where component wiring becomes useful. Instead, for each fragment that contains the needed information, you can use component wiring to define a contextual event that is raised when the page is submitted. The page or fragment that requires the information can then subscribe to the various events and receive the information through the event.

Oracle Composer provides tools for wiring pages and components through its Page Properties and Component Properties dialog boxes. This chapter describes how. It contains the following sections:

Note:

If you navigate away from a page while editing it, unsaved changes are lost.

Audience

This chapter is intended for advanced users who have experience with and knowledge of component wiring. Interested users include those who want to create more complex relationships between a page and its components and between the components themselves.

8.1 What You Should Know About Parameter and Event Wiring

You can use parameters and events to pass values from one component to another or from a page to a component on that page. Additionally, you can pass values to page components by specifying them in the page's URL.

Note:

In this chapter, component refers collectively to UI components, such as buttons; layout components, such as hyperlinks; task flows; and portlets.

Value passing is useful for synchronizing the content of a page with its components or the content of one component to another. For example, you can wire a Parameter Form portlet so that the event of clicking its OK button triggers the passing of its user-entered values to another component on the page. One way to apply this model is to pass a user-entered name to a task flow or portlet that displays details relevant to that name.

To clarify what it going on in a parameter passing scenario, it helps to think of one component as the producer and the other component as the consumer. The producer component provides the payload that the consumer component consumes. For example, a form portlet is typically a producer. Its payload is the data users enter into the form. An event defined on the producer triggers the passing of the producer's payload to the consumer. Consumer components use the payload in various ways. For example, as a display string, a master in a master-detail relationship, and the like. How a consumer component uses the payload is specified in an event handler that was defined when the consumer component was created.

The heavy lifting required to produce meaningful parameter and event wiring is performed mostly at application and component design time. When a developer builds applications and components, he or she specifies events and event maps in page definition files. Consequently, for runtime wiring to work the components you want to wire must provide support for it through elements that were built-in at design-time.

Note:

Runtime refers to the time when users run the application in a real-world environment. Contrast this with design-time, which refers to the time developers build the application.

Runtime wiring creates a relationship between a producer event and a consumer event handler. You can create these relationships in Oracle Composer. Select a component and view its events support on the Events tab of the Component Properties dialog box (Figure 8-1).

Figure 8-1 Events Tab in the Component Properties Dialog Box

Events tab in the Component Properties dialog box

Once you select and enable an event and an event handler (see the Action section in Figure 8-1), you can define the type of payload to deliver when the event is triggered.

Oracle Composer additionally provides an opportunity to create page parameters on the Parameters tab of the Page Properties dialog box (Figure 8-2).

Figure 8-2 Parameters Tab in the Page Properties Dialog Box

Parameters tab in Page Properties dialog box

Use the Parameters tab to create new page parameters and to revise existing page parameters. Create parameters that consume value types, including constants, EL expressions, page parameters, and page definition variables

You can easily configure page components to consume page parameters, and you can pass values to those parameters through the page URL.

8.2 Wiring One Component to Another

Components with built-in events and event handlers can be wired to each other to enable the passing of values from a producer component to a consumer component. This section describes how to set up such wiring. It contains the following subsections:

8.2.1 Wiring a Task Flow to a Task Flow

In addition to seeded services and task flows, you can bring custom task flows into the WebCenter Spaces application. To bring custom task flows into WebCenter Spaces, you must first portletize them, so that they can be consumed by WebCenter Spaces across a portlet bridge.

Note:

When you work with contextual event wiring across a portlet bridge and no payload or a null payload is propagated across the wire from the producer portlet to the consumer, such payloads are delivered as an empty string. If the consumer portlet is required to differentiate between an empty string and null, you can encode the null in the producer portlet payload. The consumer portlet consequently looks for this custom encoding to detect the null payload.

Custom task flows may support events and may include the capability of parameter passing. Events and parameter passing could enable one custom task flow to pass values to other custom task flows on the same page. For example, you could wire custom task flows so that when a user clicks a particular document, an event is raised that triggers parameter passing to the other custom task flows on the page. The passed parameters could cause the other custom task flows to rerender with content relevant to the clicked document.

When event triggering and parameter passing are supported in a custom task flow, any wiring you undertake is done in Oracle Composer's Component Properties dialog box. The events and parameters that you configure vary according to the functionality that developers build into custom task flows.

Creating and portletizing custom task flows and using the portlet bridge are all discussed in Oracle Fusion Middleware Developer's Guide for Oracle WebCenter. For information about consuming custom task flows and other custom components in the WebCenter Spaces application, see Oracle Fusion Middleware Administrator's Guide for Oracle WebCenter.

To wire a task flow to a task flow:

  1. Login to your WebCenter application, and go to the page on which to wire two task flows to each other.

  2. In WebCenter Spaces, select Edit Page from the Page Actions menu (Figure 8-3)

    Figure 8-3 Edit Page Command on the Page Actions Menu

    Edit Page command on the Page Actions menu

    In a custom WebCenter application, open Oracle Composer in the manner designed for that application.

  3. Click the Edit icon on the task flow that consumes the payload provided by the producer task flow.

    The Component Properties dialog box opens.

  4. Click the Events tab to bring it forward, and, from the Events pane, select an event associated with the producer task flow.

    The Events pane lists all of the events that can be raised from any component on the page. An asterisk (*) on an event indicates that an action is handling it.

  5. In the Actions pane, select the action to execute when the event occurs.

    The Actions pane lists all of the event handlers associated with the consumer task flow that are supported by the selected producer task flow. Only those actions that can be invoked for the event that is selected in the Events pane are shown. An asterisk on an action indicates that it is handling an event.

  6. Select the Enable Action check box to enable the selected event and action.

    An asterisk displays next to the selected event and action. Value options appear below the check box.

  7. From the displayed value options, select the type of value to use to deliver the payload from the producer task flow to the consumer task flow whenever the event occurs.

    Choose from:

    • Constant—Select Constant and enter a constant or EL expression value to pass to the consumer task flow.

    • EventData—Select to pass the variable ${payLoad}, which delivers whatever payload is specified by the producer task flow.

      Note:

      The value for ${payLoad} is specified when the task flow is created.
  8. Click the Save button at the top-right of Oracle Composer to save your changes (Figure 8-4).

    Figure 8-4 The Save Button

    Save button
  9. Click the Close button to exit Oracle Composer (Figure 8-5).

    Figure 8-5 The Close Button

    Close button in Oracle Composer
  10. Test your wiring by triggering the event.

8.2.2 Wiring a Portlet to a Portlet

To wire a portlet to a portlet:

  1. Login to your WebCenter application, and go to the page on which to wire two portlets to each other.

  2. In WebCenter Spaces, select Edit Page from the Page Actions menu (Figure 8-6)

    Figure 8-6 Edit Page Command on the Page Actions Menu

    Edit Page command on the Page Actions menu

    In a custom WebCenter application, open Oracle Composer in the manner designed for that application.

  3. Click the Edit icon on the portlet that produces the payload to be consumed.

  4. In the Component Properties dialog box, click the Display Options tab to bring it forward.

  5. Copy the value in the Id field and click OK.

    You use this value later to ensure that changes in this portlet cause the consumer portlet to refresh.

  6. Click the Edit icon on the portlet that consumes the payload provided by the producer portlet.

    The Component Properties dialog box opens.

  7. Click the Display Options tab to bring it forward.

  8. In the Partial Triggers field, paste the portlet ID you copied earlier and click Apply.

  9. Click the Events tab to bring it forward, and select an event associated with the producer portlet.

    The Events pane lists all of the events that can be raised from any component on the page. An asterisk (*) on an event indicates that an action is handling it.

    Events associated with the producer portlet contain the same ID that you pasted into the Partial Triggers field.

  10. In the Actions pane, select the action to execute when the event occurs.

    The Actions pane lists all of the event handlers associated with the consumer portlet that are supported by the selected producer portlet. Only those actions that can be invoked for the event that is selected in the Events pane are shown. An asterisk on an action indicates that it is handling an event.

  11. Select the Enable Action check box to enable the selected event and action.

    An asterisk displays next to the selected event and action.

  12. Provide values for the portlet parameters that now display at the bottom of the Events tab.

    Select Constant, and enter a composite data value, for example:

    ${payLoad.ora_wsrp_navigparam_Parameter1}
    

    Note:

    The parameter names and values were specified when the portlet was created.
  13. Click the Save button at the top-right of Oracle Composer to save your changes (Figure 8-7).

    Figure 8-7 The Save Button

    Save button
  14. Click the Close button to exit Oracle Composer (Figure 8-8).

    Figure 8-8 The Close Button

    Close button in Oracle Composer
  15. Test your wiring by triggering the event.

8.2.3 Wiring a UI Component to a UI Component

This action is available to custom WebCenter applications only.

To wire a UI component to a UI component:

  1. Login to your WebCenter application, and go to the page on which to wire two user interface (UI) components to each other.

  2. Open Oracle Composer in the manner designed for your WebCenter application.

  3. Click the Edit icon on the UI component that consumes the payload provided by the producer UI component.

    The Component Properties dialog box opens.

  4. Click the Events tab to bring it forward, and select an event associated with the producer UI component in the Events pane.

    The Events pane lists all of the events that can be raised from any component on the page. An asterisk (*) on an event indicates that an action is handling it.

  5. In the Actions pane, select the action to execute when the event occurs.

    The Actions pane lists all of the event handlers associated with the consumer UI component that are supported by the selected producer UI Component. Only those actions that can be invoked for the event that is selected in the Events pane are shown. An asterisk on an action indicates that it is handling an event.

  6. Select the Enable Action check box to enable the selected event and action.

    An asterisk displays next to the selected event and action. Value options appear below the check box.

  7. Select the type of value to use to deliver the payload from the producer UI component to the consumer UI component whenever the event occurs.

    Choose from:

    • Constant—Select Constant and enter a constant or EL expression value to pass to the consumer UI component.

    • EventData—Select to pass the variable ${payLoad}, which delivers whatever payload is specified by the producer UI component.

      Note:

      The value for ${payLoad} was specified when the UI component was created.
  8. Click the Save button at the top-right of Oracle Composer to save your changes (Figure 8-9).

    Figure 8-9 The Save Button

    Save button
  9. Click the Close button to exit Oracle Composer (Figure 8-10).

    Figure 8-10 The Close Button

    Close button in Oracle Composer
  10. Test your wiring by triggering the event.

8.2.4 Wiring a Portlet to a Task Flow

In this scenario, the portlet is the producer, providing the event payload, and the task flow is the consumer of that payload.

To wire a portlet to a task flow:

  1. Login to your WebCenter application, and go to the page on which to wire a portlet to a task flow.

  2. In WebCenter Spaces, select Edit Page from the Page Actions menu (Figure 8-11)

    Figure 8-11 Edit Page Command on the Page Actions Menu

    Edit Page command on the Page Actions menu

    In a custom WebCenter application, open Oracle Composer in the manner designed for that application.

  3. Click the Edit icon on the task flow that consumes the payload provided by the producer portlet.

    The Component Properties dialog box opens.

  4. Click the Events tab to bring it forward, and select an event associated with the producer portlet from the Events pane.

    The Events pane lists all of the events that can be raised from any component on the page. An asterisk (*) on an event indicates that an action is handling it.

  5. In the Actions pane, select the action to execute when the event occurs.

    The Actions pane lists all of the event handlers associated with the consumer task flow that are supported by the selected producer portlet. Only those actions that can be invoked for the event that is selected in the Events pane are shown. An asterisk on an action indicates that it is handling an event.

  6. Select the Enable Action check box to enable the selected event and action.

    An asterisk displays next to the selected event and action. Value options appear below the check box.

  7. Select Constant and enter a composite data value for a parameter associated with the producer portlet.

    For example:

    ${payLoad.ora_wsrp_navigparam_Parameter1}
    
  8. Click the Save button at the top-right of Oracle Composer to save your changes (Figure 8-12).

    Figure 8-12 The Save Button

    Save button
  9. Click the Close button to exit Oracle Composer (Figure 8-13).

    Figure 8-13 The Close Button

    Close button in Oracle Composer
  10. Test your wiring by triggering the event.

8.2.5 Wiring a Task Flow to a Portlet

In this scenario, the task flow is the producer, providing the event payload, and the portlet is the consumer of that payload.

To wire a task flow to a portlet:

  1. Login to your WebCenter application, and go to the page on which to wire a task flow to a portlet.

  2. In WebCenter Spaces, select Edit Page from the Page Actions menu (Figure 8-14)

    Figure 8-14 Edit Page Command on the Page Actions Menu

    Edit Page command on the Page Actions menu

    In a custom WebCenter application, open Oracle Composer in the manner designed for that application.

  3. In the task flow header, click the Edit icon.

  4. In the Component Properties dialog box, click the Display Options tab to bring it forward.

  5. Copy the value in the Id field and click OK.

    You use this value later to ensure that changes in this task flow cause the portlet to refresh.

  6. Click the Edit icon on the portlet that consumes the payload provided by the producer task flow.

  7. Click the Display Options tab to bring it forward.

  8. In the Partial Triggers field, enter the task flow ID you copied earlier and click Apply.

  9. Click the Events tab to bring it forward, and select an event associated with the producer task flow in the Events pane.

    The event contains the same ID that you pasted into the Partial Triggers field.

    The Events pane lists all of the events that can be raised from any component on the page. An asterisk (*) on an event indicates that an action is handling it.

  10. In the Actions pane, select the action to execute when the event occurs.

    The Actions pane lists all of the event handlers associated with the consumer portlet that are supported by the selected producer task flow. Only those actions that can be invoked for the event that is selected in the Events pane are shown. An asterisk on an action indicates that it is handling an event.

  11. Select the Enable Action check box to enable the selected event and action.

    An asterisk displays next to the selected event and action.

  12. Provide values for the portlet parameters that now display at the bottom of the Events tab.

    Select Constant, and enter a composite data value, for example:

    ${payLoad.ora_wsrp_navigparam_Parameter1}
    

    Note:

    The parameter names and values were specified when the portlet was created.
  13. Click the Save button at the top-right of Oracle Composer to save your changes (Figure 8-15).

    Figure 8-15 The Save Button

    Save button
  14. Click the Close button to exit Oracle Composer (Figure 8-16).

    Figure 8-16 The Close Button

    Close button in Oracle Composer
  15. Test your wiring by triggering the event.

8.2.6 Wiring a UI Component to a Task Flow

In this scenario, the UI component is the producer of the payload, and the task flow is the consumer of the payload.

To wire a UI component to a task flow:

  1. Login to your WebCenter application, and go to the page on which to wire two user interface (UI) components to each other.

  2. In WebCenter Spaces, select Edit Page from the Page Actions menu (Figure 8-17)

    Figure 8-17 Edit Page Command on the Page Actions Menu

    Edit Page command on the Page Actions menu

    In a custom WebCenter application, open Oracle Composer in the manner designed for that application.

  3. Click the Edit icon on the task flow that consumes the payload provided by the producer UI component.

  4. Click the Events tab to bring it forward, and select an event associated with the producer UI component in the Events pane.

    The Events pane lists all of the events that can be raised from any component on the page. An asterisk (*) on an event indicates that an action is handling it.

  5. In the Actions pane, select the action to execute when the event occurs.

    The Actions pane lists all of the event handlers associated with the consumer task flow that are supported by the selected producer UI Component. Only those actions that can be invoked for the event that is selected in the Events pane are shown. An asterisk on an action indicates that it is handling an event.

  6. Select the Enable Action check box to enable the selected event and action.

    An asterisk displays next to the selected event and action. Value options appear below the check box.

  7. Select the type of value to use to deliver the payload from the producer UI component to the consumer task flow whenever the event occurs.

    Choose from:

    • Constant—Select Constant and enter a constant or EL expression value to pass to the consumer task flow.

    • EventData—Select to pass the variable ${payLoad}, which delivers whatever payload is specified by the producer UI component.

      Note:

      The value for ${payLoad} was specified when the UI component was created.
  8. Click the Save button at the top-right of Oracle Composer to save your changes (Figure 8-18).

    Figure 8-18 The Save Button

    Save button
  9. Click the Close button to exit Oracle Composer (Figure 8-19).

    Figure 8-19 The Close Button

    Close button in Oracle Composer
  10. Test your wiring by triggering the event.

8.3 Wiring Components and Page Parameters

Page parameters and page variables are central to the process of creating enterprise mashups. They enable communication between components and the pages that contain them.

For example, imagine a page that contains stock ticker and stock news components. You want the ticker and the news components to both consume the same parameter value so that they both show information for the same company. Page parameters and page variables are part of a simple mechanism for setting this up.

Page parameters provide a means of storing values for passing to page components that have been configured to consume them. Create page parameters through Oracle Composer at application runtime. Page variables contain output values that are produced by portlets. Page variables are created at application design time.

Consuming page variables is demonstrated in Section 8.4.4, "Wiring the Parameter Form and Display Portlets." This section describes how to create and consume page parameters.

This section describes the basics of performing these steps. It contains the following subsections:

8.3.1 Creating Page Parameters

Use the Parameters tab in the Oracle Composer Page Properties dialog box to create page parameters.

To create page parameters:

  1. Log in to your WebCenter application.

    For information on how to log in, see Section 2.2.1, "Logging In to a WebCenter Application."

  2. Go to the page where you want to create page parameters.

    For assistance with locating a page, see Section 2.4, "Hiding, Showing, Opening, and Closing Pages."

  3. In WebCenter Spaces, select Edit Page from the Page Actions menu (Figure 8-20)

    Figure 8-20 Edit Page Command on the Page Actions Menu

    Edit Page command on the Page Actions menu

    In a custom WebCenter application, open Oracle Composer in the manner designed for that application.

  4. Click the Page Properties button to open the Page Properties dialog box (Figure 8-21).

    Figure 8-21 The Page Properties Button in Oracle Composer

    Page Properties button in Oracle Composer

    The Page Properties dialog box opens (Figure 8-22).

    Figure 8-22 Page Properties Dialog Box

    Page Properties dialog box
  5. Click the Parameters tab to bring it forward, and then click the Add a page parameter link.

    The Add a Page Parameter dialog box opens (Figure 8-23).

    Figure 8-23 Add a Page Parameter Dialog Box

    Add a Page Parameter dialog box
  6. In the Name field, provide a name for the new parameter, and then click the Add Parameter button.

    The parameter displays on the Parameters tab with a value entry field and an Edit icon for opening the EL Editor (see Section 7.4.5.1, "Introducing the Expressions Editor") (Figure 8-24).

    Figure 8-24 A New Parameter on the Parameters Tab

    A new parameter (boxWell) on the Parameters tab
  7. Open the EL Editor and select from prebuilt values under Choose a value or enter a value manually under Type a value or expression.

    For example, enter any of the following types of values:

    • Constant—Enter a specific, fixed value.

    • Page Parameter—Enter a Page Parameter to enable the page to take values through its URL.

    • EL Expression—Enter an EL Expression to enable the page to take a value expressed through Expression Language (EL). (For information about EL, see Section 7.4.5, "Using Expression Language (EL) Expressions with Component Properties.")

      This option can provide a much more dynamic response. For example, the page could set a page parameter based on a component on the page. In this case, you would want the other components on the page to be refreshed whenever this value changed.

  8. Click the Save button at the top-right of Oracle Composer to save your changes (Figure 8-25).

    Figure 8-25 The Save Button

    Save button
  9. Continue adding page parameters as desired following steps 1 through 8.

  10. Click the Close button to exit Oracle Composer (Figure 8-26).

    Figure 8-26 The Close Button

    Close button in Oracle Composer

8.3.2 Consuming Page Parameters

In addition to wiring components to each other, you can wire them to page parameters. Page parameters are user-constructed name/value pairs for use in passing values to page components, such as task flows, portlets, and UI components.

You can create page parameters and configure task flows and portlets to consume them. This section describes how to wire a task flow with a page parameter. For an example of wiring a portlet to a page parameter, see Section 8.4.4, "Wiring the Parameter Form and Display Portlets."

Note:

Before you can take the steps outlined in this section, you must create a page parameter and provide it with a value. For more information, see Section 8.3.1, "Creating Page Parameters."

To wire a task flow to a page parameter:

  1. Login to your WebCenter application, and go to the page on which to wire a task flow to a page parameter.

  2. In WebCenter Spaces, select Edit Page from the Page Actions menu (Figure 8-27)

    Figure 8-27 Edit Page Command on the Page Actions Menu

    Edit Page command on the Page Actions menu

    In a custom WebCenter application, open Oracle Composer in the manner designed for that application.

  3. Click the Edit icon on the task flow to be wired to a page parameter.

  4. Click the Parameters tab to bring it forward.

  5. Click the Edit icon next to the property that takes the parameter value.

    This opens an editor where you can provide the name of the page parameter.

  6. Select Choose a value.

  7. Under Choose a value, select Page Parameter from the first list, and the name of the relevant page parameter from the second.

  8. Click OK to exit the editor.

  9. Click OK to save your changes and exit the Component Properties dialog box.

    The task flow is refreshed, now displaying the result of the value passed through the page parameter.

8.4 Working with the Parameter Form and Display Portlets

This section describes how to wire the Parameter Form and Parameter Display portlets to each other. It contains the following subsections:

8.4.1 What You Should Know About The Parameter Form and Display Portlets

The Parameter Form and Parameter Display portlets provide a quick and easy way to pass values between components. They are provided by the WSRP Tools producer.

Note:

The Parameter Form and Display portlets are available in your application only if your application administrator has registered the WSRP Tools producer with the application. If you cannot see these portlets, contact your administrator (see Section 2.7, "Contacting Your Application Administrator").

The Parameter Form portlet (Figure 8-28) has three output parameters that are set when values are submitted in the form inside the portlet. The parameters can then be used to drive the content of other portlets. You can customize the Parameter Form portlet to determine how many of the three fields are displayed on the form, depending on how many parameters you require.

Figure 8-28 Parameter Form Portlet

Parameter Form portlet

The Parameter Display portlet (Figure 8-29) enables you to quickly test the wiring from the Parameter Form portlet. However, typically you use the values passed from the Parameter Form portlet to drive the content of some other portlet, for example to pass a zip code to a weather portlet, or a stock symbol to a stock ticker portlet.

Figure 8-29 Parameter Display Portlet

Parameter Display portlet

8.4.2 Adding the Parameter Form and Display Portlets to a Page

You add the Parameter Form and Display portlets to a page in the same way as you add any other portlet. For more information, see Section 7.1.4.2, "Adding a Portlet to a Page."

Note:

The Parameter Form and Display portlets are available in your application only if your application administrator has registered the WSRP Tools producer with the application. If you cannot see these portlets, contact your administrator. For information about contacting your application administrator, see Section 2.7, "Contacting Your Application Administrator."

8.4.3 Customizing the Parameter Form Portlet

You can customize the Parameter Form portlet to give it a more meaningful title and to determine the number of fields displayed (up to a maximum of three).

Figure 8-30 shows a Parameter Form portlet that has been customized to display a single field that is used to provide a zip code that can be passed into a weather portlet.

Figure 8-30 Customized Parameter Form Portlet

Customized Parameter Form portlet

To customize the Parameter Form portlet:

  1. Log in to your WebCenter application, and go to the page that contains the Parameter Form portlet.

  2. Select Customize from the Actions menu.

  3. In the Title field, enter a title to describe what the portlet is for.

  4. In the Parameter 1 Prompt field, enter text to describe what data you want users to enter into the field.

  5. Repeat the step above for the Parameter 2 Prompt and Parameter 3 Prompt fields.

    You can clear one or both of these fields if you do not want them to display in the portlet.

  6. Click OK.

8.4.4 Wiring the Parameter Form and Display Portlets

You can pass the values set in the Parameter Form portlet to the Parameter Display portlet to see how the wiring works. Typically however, you use the Parameter Form portlet to pass data to some other portlet.

To wire the Parameter Form and Parameter Display portlets:

  1. Login to your WebCenter application, and go to the page that contains the Parameter Form and Display portlets.

  2. In WebCenter Spaces, select Edit Page from the Page Actions menu.

    In a custom application, open Oracle Composer in the manner designed for that application.

  3. In the Parameter Form portlet header, click the Edit icon.

  4. In the Component Properties dialog box, click the Display Options tab to bring it forward.

  5. Make note of and copy the value in the Id field and click OK.

    You use this value later to specify page variables and to ensure that changes in this portlet cause the Parameter Display portlet to refresh.

  6. In the Parameter Display portlet, click the Edit icon.

  7. In the Component Properties dialog box, click the Display Options tab to bring it forward.

  8. In the Partial Triggers field, enter the portlet ID you copied earlier and click Apply.

  9. Click the Parameters tab to bring it forward.

  10. Click the Edit icon next to the Parameter1 field.

  11. Select Choose a value.

  12. From the first list, choose Page Parameter.

  13. From the second list, choose the page parameter value set by the Parameter Form portlet to use to populate the Parameter1 field in the Parameter Display field.

    Table 8-1 associates the portlet parameters with the page variable values to select.

    Table 8-1 Parameter Settings of the Parameter Form Portlet

    Portlet Parameter Page Variable

    ora_wsrp_navigparam_Parameter1

    <portlet_id_attribute_value>_ora_wsrp_navigparam_Parameter1

    ora_wsrp_navigparam_Parameter2

    <portlet_id_attribute_value>_ora_wsrp_navigparam_Parameter2

    ora_wsrp_navigparam_Parameter3

    <portlet_id_attribute_value>_ora_wsrp_navigparam_Parameter3


    The variable value <portlet_id_attribute_value> is the portlet ID you made note of in step 5.

  14. Click Apply.

  15. If required, repeat steps 10 to 14 for the Parameter2 and Parameter3 fields.

  16. Click OK.

  17. Save your changes and close Oracle Composer.

  18. In the Parameter Form portlet, enter a value in the first field and click OK.

    The Parameter Display portlet refreshes to display the value you entered in the Parameter Form portlet (Figure 8-31).

    Figure 8-31 Parameter Display Portlet Wired to Parameter Form Portlet

    Parameter Display portlet wired to Parameter Form portlet

8.5 Passing Parameter Values Through the Page URL

You can provide Expression Language (EL) expressions in lieu of other types of values to component parameters. This is discussed in Section 7.4.5, "Using Expression Language (EL) Expressions with Component Properties." You can take this capability one step further by passing parameter values with your page URLs.

This section provides one scenario, which you can use as a model for other parameter passing situations.

To pass parameter values through a page URL:

  1. Log in to your WebCenter application.

    For information about logging in, see Section 2.2.1, "Logging In to a WebCenter Application."

  2. Go to the page that contains a component to which you want to pass values through the page URL.

  3. Edit the relevant component's properties (see Section 7.4, "Setting Properties on Page Content").

  4. Open the EL Editor for the Parameter or Display Option to which you want to pass a value (see Section 7.4.5.1, "Introducing the Expressions Editor").

  5. Under Type a value or expression, enter #{param.val}.

  6. Save your changes.

  7. To pass a value to the parameter, append the following to your page URL:

    ?val=<value>
    

    Where <value> represents the value you want to pass, for example, true, medium, or Default.