You see the Properties window for an Alert Component when you select the component on a page that you are editing in the Visual Designer. Most of the component's properties are both JSP attributes and properties of the
Alert
Java component in the page bean.
This JavaServer Faces 1.2 component has the following properties.
Type: String
Type: String
summary
property. Type: String
detail
property. You can specify the action expression, target, or URL for the link in the linkAction
, linkTarget
, or linkURL
property. You might want to specify a link to more information, for example. Type: String
position: absolute; left: 288px; top: 312px
You can enter values directly or click the ellipsis (...) button to use the Style Editor.
For a list of CSS2 style attributes, see the web page at
Type: String
style
property description for an explanation of why a class added to this property might appear to have no effect on the component. Type: String
detail
property. Type: String
linkText
property. Type: String
linkText
property. Equivalent to the HTML attribute href
. If the value of this property is set, the page is not submitted if the user clicks the hyperlink. If the value of this property is not specified, clicking the hyperlink submits the page. If you do not set this property and there is a hyperlink component in the detail section, use the alert-id
_action
method to define what happens when the user clicks the hyperlink. See the linkAction
property below for more information.
Type: List
type
property. Type: String
title
attribute for the hyperlink defined by the linkText
and linkAction
, linkTarget
, or linkURL
properties. The text value of this property displays if the user hovers the mouse cursor over the hyperlink.
Type: boolean
type: String
alt
text for the alert's icon, which varies depending on the value of the type property. The alt text describes the graphic element in the HTML page, is readable by screen readers, can display as a tool tip, and displays when the user has display of images turned off in the web browser. Type: String
Type: boolean
visible
property instead of this property. Type: String
Type: MethodExpression
linkText
property. The action method expression is called when the user clicks the hyperlink. The default name for the method is alert-id
_action
, where alert-id is the value of the alert's id
property.
The action method returns an outcome String
that determines the next page to render according to the Page Navigation. If the action method returns null, the source page is simply rerendered. If the action method returns a non-null outcome, you must also use the Page Flow editor to create a navigation case for that outcome. For example, if the action method returns "Success," you must create an appropriate "Success" navigation case from the source page to some destination page.
If you right-click the component, you can choose Edit action Event Handler to define an action method for the hyperlink and set this property's value automatically.
linkURL
property if you use this property.