Displays an error, warning, success, or informative alert box. This component is typically located at the top of a page. You can display multiple alerts in a single alert box by defining child components of type InlineAlert$AlertItem.
Properties for this display component include:
alertType– Specifies the type of alert to display. This property determines the styles and images to use. Valid values are error, warning, success, and info. The value of this property defaults to info. This property is valid only for InlineAlert.
header– Specifies the title to display for the alert box. This can be either a string or a message object. This property is valid for InlineAlert or InlineAlert$AlertItem.
value– Specifies the alert message to display. This value can either be a string or a message object. This property is valid for InlineAlert or InlineAlert$AlertItem.
linkURL– Specifies an optional URL to display at the bottom of the alert. This property is valid for InlineAlert or InlineAlert$AlertItem.
linkText– Specifies the text for the linkURL. This can be either a string or a message object. This property is valid for InlineAlert or InlineAlert$AlertItem.
linkTitle– Specifies the title for the linkURL. This can be either a string or a message object. This property is valid for InlineAlert or InlineAlert$AlertItem.
<Field> <Display class=’InlineAlert’> <Property name=’alertType’ value=’warning’/> <Property name=’header’ value=’Data not Saved’/> <Property name=’value’ value=’The data entered is not yet saved. Please click Save to save the information.’/> </Display> </Field> |
Define alertType only within the InlineAlert property. You can define other properties in the InlineAlert$AlertItems.
<Field> <Display class=’InlineAlert’> <Property name=’alertType’ value=’error’/> </Display> <Field> <Display class=’InlineAlert$AlertItem’> <Property name=’header’ value=’Server Unreachable’/> <Property name=’value’ value=’The specified server could not be contacted. Please view the logs for more information.’/> <Property name=’linkURL’ value=’viewLogs.jsp’/> <Property name=’linkText’ value=’View logs’/> <Property name=’linkTitle’ value=’Open a new window with the server logs’/> </Display> </Field> <Field> <Display class=’InlineAlert$AlertItem’> <Property name=’header’ value=’Invalid IP Address’/> <Property name=’value’ value=’The IP address entered is in an invalid subnet. Please use the 192.168.0.x subnet.’/> </Display> </Field> </Field> |