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

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.   Documentation homepage.