About MessageChoice

The messageChoice component is a combination of the choice component and messageLayout component.

Use the messageChoice component to insert a standard dropdown box with a prompt and an optional message type icon before the dropdown box . To add a component after the choice component, use the end named child. The inline message is placed below the choice component.

Choice box with prompt and error icon

The choice component options are created by using a series of option components as indexed children of the messageChoice component. The messageChoice component can contain any number of option elements, but the user can select only one value from the list of items.

Use the selectedIndex attribute to specify a globally selected item. The selected item is displayed in the dropdown box when the page is first viewed in a browser.

Use the required attribute to specify that the component requires user input. An asterisk displays next to the prompt if user input is required.

In addition to general and message attributes, you can also set the primaryClientAction attribute to fire an event when the user selects an item.

Note: The difference between the messageChoice component and the messageList component is that only a single item can be selected at a time in a messageChoice.


About MessageLayout
About Message Form Components and Attributes

Inserting a MessageChoice
Working with Form Components

 

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