Note: Except for confirmation message boxes, a message box data can be automatically configured from a messageData object. See the documentation for the MessageData class to learn about configuring a data object.
To create a messageBox:
If the pageLayout node is not visible, expand page | content | dataScope | document | body | form. The messages node is under pageLayout Named Children in pageLayout.
The new messageBox node is inserted and highlighted in the Structure Window. The Property Inspector displays the properties of the messageBox component.
The link node is inserted and highlighted in the Structure Window. The Property Inspector displays the properties of the link component.
Note: To use data binding, see Data Binding a Component Attribute.
...
<pageLayout>
<!-- Message box component without data -->
<contents>
<messageBox message="This is the main message." messageType="warning">
<contents>
<link text="label1" longDesc="message1" destination="destination1" />
<link text="label2" longDesc="message2" destination="destination2" />
<link text="label3" longDesc="message3" destination="destination3" />
</contents>
</messageBox>
</contents>
<!-- REST OF PAGE LAYOUT -->
</pageLayout>
...
This is a databound "warning" message box with a message and a few linked children:
...
<messageBox message="This is the Message"
messageType="warning">
<contents childData="${MyMessageData.warnings}">
<link text="${uix.current.label}"
longDesc="${uix.current.message}"
destination="${uix.current.destination}" />
</contents>
</messageBox>
...
About MessageBox
About PageLayout and its Named Children
Creating a Footnote
Creating Page Status Information
Working with PageLayout and its Named Children
Working with Simple and Miscellaneous Components
Copyright © 1997, 2004, Oracle. All rights reserved.