About MessageBox

The messageBox component is used in the messages named child of pageLayout to display a shaded boxed area at the top of a page for error, warning, confirmation, or informational messages. The messageType attribute determines the type of the message box to display.

You can configure a messageBox component by explicitly setting the messageBox attributes or by using automatic configuration from a messageData object. Set the automatic attribute to true if you want to use automatic configuration. See the Java documentation for the MessageData class to learn about configuring a data object.

Note: Automatic configuration cannot be used for confirmation messages.

Warning message box

The title and icon of a message box are automatically generated. For example, if you specify the message box type as "warning", the warning icon and title of "Warning" displays at the top of the box. Use the text attribute to replace the default message title, if you desire.

Below the message title is the main message text, followed by a list of individual messages. If using explicit attributes to configure a message box, the individual messages are derived from link components that are the indexed children of the messageBox component. If using automatic configuration, use the dataName and dataNamespace attributes to specify the data object name and namespace of the data object from which to gather message data.


About PageLayout and its Named Children

Creating a MessageBox
Working with PageLayout and its Named Children
Working with Simple and Miscellaneous Components

 

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