JSF 1.2 Page Alert Component
See Also
The Page Alert component
provides a full-page alert, an alert message that displays in its own page. A page alert message consists
of an icon depicting the type of page alert—error, warning, information,
or question—and a short message, plus an optional longer, more detailed message.
-
This component has support for client-side JavaScript functions that enable you to perform actions on the client without a trip back to the server. For more information on this advanced feature, choose Help > JavaScript References > Project Woodstock 4.1 Tag Library and navigate to webuijsf:pageAlert.
If you need a smaller alert that displays in the page that invokes the alert, use an inline Alert component.
- After dropping a Page Alert component on a page, its default size in the Visual Designer does not match the size in the browser preview. To make the two component representations match each other, resize the component in the Visual Designer.
After dragging the button to the Visual Designer, you can:
- Select the component and edit its properties in the Page Alert's Properties window. Some typical properties you might set are:
- id. The name of the component. In the JSP file, this name is the value of the component's
id
attribute. In the page bean, this property's value is the name of the PageAlert
object.
- type. The severity of the page alert, which determines the icon that appears to the left of the summary. Choose an item from the property's drop down list to see what the icon looks like in the Visual Designer. You might have to right-click in your page and choose Refresh to see the new icon.
- summary.
Brief text that tells the user why the page alert was displayed.
- detail. A longer text message providing more detail about the alert.
- Right-click the page alert and choose one of several actions:
- Property Bindings. Opens a dialog box that enables you to bind properties of the component to JavaBeans properties that update this component's properties automatically.
- Add Binding Attribute. This option adds a binding attribute to the component.
- Note: If you plan to script the component in Java code, you must manually add a binding attribute, which is bound using a value binding expression to a property of the backing page bean.
- Remove Binding Attribute. This option removes the binding attribute from the component.
- Preview in Browser. See how the page renders in the default web browser for your system.
- See Also
- Page Alert Properties Window
- Binding Component Properties
- Working
With Components
- Component Tasks: Quick Reference
- About the Visual Web Palette
Legal Notices