JSF 1.1 Page Alert Component
See Also
You can drag a Page Alert component
from the Palette's Layout category to the Visual Designer to create 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 is a JavaServer Faces 1.1 component. You see components that use this
version of JavaServer Faces when your project uses J2EE 1.4 or J2EE 1.3.
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.
- Align. If you have multiple components selected, you can specify how they align with one another. If only the current component is selected, you can choose whether the component aligns with (snaps to) the background grid when you move it around.
- Preview in Browser. See how the page renders in the default web browser for your system.
- See Also
- Binding Component Properties
- Working
With Components
- Component Tasks: Quick Reference
- About the Visual Web Palette
Legal Notices