JViews Core
Tag messageBox


Message Box Faces Component

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.

Usage

.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" />

DHTML - JavaScript Types

IlvMessageBoxProxy

JSF Component Class

IlvMessageBox



Tag Information
Tag Classilog.views.faces.dhtml.taglib.IlvMessageBoxTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameMessage Box

Attributes
NameRequiredRequest-timeTypeDescription
partialTriggersfalsefalsejava.lang.StringThis 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.

bindingfalsefalsejava.lang.StringThe 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.
heightfalsefalsejava.lang.StringThe 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.
idfalsefalsejava.lang.StringThe ID of this component.
stylefalsefalsejava.lang.StringCSS style(s) to be applied when this component is rendered.
styleClassfalsefalsejava.lang.StringSpace separated list of CSS style classe(s) to be applied when this element is rendered.
widthfalsefalsejava.lang.StringThe 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.
baseTextDirectionfalsefalsejava.lang.StringThis attribute controls the direction of the text. supported values: LTR, RTL , Contextual

Variables
No Variables Defined.


© Copyright Rogue Wave Software Inc. 1997, 2018. All Rights Reserved.