| |||||||
FRAMES NO FRAMES |
The message box faces component allows other JViews Faces components to display messages to users. The JViews Faces components that provide integration with the message box faces component have a messageBoxId
attribute that should be set with the identifier of the message box faces component; they also have a message
attribute that contains the actual message that will be communicated to the message box faces component when the given JViews faces component is activated. The activation process is specific to the component. For example, the image button faces component is activated when it is hovered. At this point it communicates its message to the message box faces component.
The dimensions of the area that displays the messages and the styling of the messages themselves can be customized via CSS, namely through itsstyle
and styleClass
attributes.
.messageBoxClass {
width:"135";
height:"25";
border-style:"outset";
border-width:"2px";
font-weight:"bold";
font-size:"12px";
}
...
<jv:imageButton
id="showDetailsButton"
title="Show Details"
style="width:20px; height:20px;"
image="images/show-details-button-normal-image.gif"
selectedImage="images/show-details-button-selected-image.gif"
rolloverImage="images/show-details-button-highlighted-image.gif"
onclick="alert('Here are the details...');"
messageBoxId="messageBox"
message="Show Details Message..."/>
...
<jv:messageBox
id="messageBox"
styleClass="messageBoxClass" />
Tag Information | |
Tag Class | ilog.views.faces.dhtml.taglib.IlvMessageBoxTag |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | Message Box |
Attributes | ||||
Name | Required | Request-time | Type | Description |
partialTriggers | false | false | java.lang.String | This attribute is meaningful only when the component is used inside an Apache MyFaces Trinidad application. The IDs of the components that should trigger a partial update. This component will listen on the trigger components. If one of the trigger components receives an event that will cause it to update in some way, this component will request to be updated too. Separate multiple triggers with a space. Trigger identifiers are relative to the source component for non-NamingContainer components and relative to the parent component for NamingContainer components. Identifiers must account for NamingContainers. You can use a single colon to start the search from the root, or use multiple colons to move up through the NamingContainer. For example, for a non-NamingContainer component, "::" will search from the parent naming container, ":::" will search from the grandparent naming container, etc. For a NamingContainer component, "::" will search from the parent component's parent naming container. ":::" will search from the parent component's grandparent naming container. |
binding | false | false | java.lang.String | The value binding expression linking this component to a property in a backing bean. If this attribute is set, the tag does not create the component itself but retrieves it from the bean property. This attribute must be a value binding. |
height | false | false | java.lang.String | The desired height in pixels of the component. Another way to set the size of the component is to use the style attribute. This value overrides values set with the style attribute. |
id | false | false | java.lang.String | The ID of this component. |
style | false | false | java.lang.String | CSS style(s) to be applied when this component is rendered. |
styleClass | false | false | java.lang.String | Space separated list of CSS style classe(s) to be applied when this element is rendered. |
width | false | false | java.lang.String | The desired width in pixels of the component. Another way to set the size of the component is to use the style attribute. This value overrides values set with the style attribute. |
baseTextDirection | false | false | java.lang.String | This attribute controls the direction of the text. supported values: LTR, RTL , Contextual |
Variables | No Variables Defined. |
| |||||||
FRAMES NO FRAMES |