Inserting a MessageChoice

To insert a messageChoice component:

  1. In the Design Structure Window of the desired file, locate the node in which you wish to insert a messageChoice component.
  2. In the Component Palette, select Form Components from the dropdown list, and then drag and drop the messageChoice component to the parent node of your choice.

    The messageChoice node is inserted and highlighted under the expanded parent node.

  3. In the Property Inspector, set the following attributes for the messageChoice component:
  4. In the Design Structure Window, right-click the messageChoice node and choose Insert inside messageChoice | option.

    The option node is inserted and highlighted under the expanded messageChoice node.

  5. In the Property Inspector, set the following attributes for the option component:
  6. Repeat steps 4 and 5 to add the desired number of options.

Note: To use data binding, see Data Binding a Component Attribute.

Tip: For an option to be rendered as selected, ADF UIX uses these attributes in this order of precedence: selection attribute on the option container, selected attribute on the option component, selectedValue attribute on the option container, selectedIndex on the option container.

For information about message attributes, see Setting the Message Attributes for a Message Form Component. For information about other general attributes of message form components, see Setting the General Attributes for a Message Form Component.

Example (UIX XML)


...
<messageChoice prompt="State"
               messageType="info"
               message="California is the sunny state."
               selectedValue="CA"
               name="mcho1">
  <contents>
    <option text="Alabama" value="AL" />
    <option text="Alaska" value="AK" />
    <option text="Arizona" value="AZ" />
    <option text="Arkansas" value="AR" />
    <option text="California" value="CA" />
    <option text="Colorado" value="CO" />
    ...
  </contents>
</messageChoice>
...    

About MessageChoice
About Message Form Components and Attributes

Inserting an End Named Child for a Message Form Component
Working with Form Components

 

Copyright © 1997, 2004, Oracle. All rights reserved.