Top Fields Constructors Methods
com.sun.faces.taglib.html_basic

public Class MessageTag

extends UIComponentELTag
Class Inheritance
Imports
com.sun.faces.util.Util, java.io.IOException, javax.el.*, javax.faces.*, javax.faces.component.*, javax.faces.context.*, javax.faces.convert.*, javax.faces.el.*, javax.faces.event.*, javax.faces.validator.*, javax.faces.webapp.*, javax.servlet.jsp.JspException

Field Summary

Modifier and TypeField and Description
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression
private ValueExpression

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
doEndTag()

Overrides javax.faces.webapp.UIComponentClassicTagBase.doEndTag.

Implements javax.servlet.jsp.tagext.Tag.doEndTag.

Process the end tag for this instance.
public int
public String
getComponentType()

Implements abstract javax.faces.webapp.UIComponentTagBase.getComponentType.

Return the component type for the component that is or will be bound to this tag.

public String
public String
getRendererType()

Implements abstract javax.faces.webapp.UIComponentTagBase.getRendererType.

Return the rendererType property that selects the Renderer to be used for encoding this component, or null to ask the component to render itself directly.

public void
release()

Overrides javax.faces.webapp.UIComponentELTag.release.

Implements javax.servlet.jsp.tagext.Tag.release.

Release any resources allocated during the execution of this tag handler.

public void
public void
public void
public void
public void
public void
public void
public void
public void
protected void
setProperties(UIComponent
UIComponent whose properties are to be overridden
component
)

Overrides javax.faces.webapp.UIComponentELTag.setProperties.

Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set.

public void
public void
public void
public void
public void
public void
public void
public void
public void
Inherited from javax.faces.webapp.UIComponentELTag:
createComponentgetELContexthasBindingsetBindingsetRendered

Field Detail

_forback to summary
private ValueExpression _for
dirback to summary
private ValueExpression dir
errorClassback to summary
private ValueExpression errorClass
errorStyleback to summary
private ValueExpression errorStyle
fatalClassback to summary
private ValueExpression fatalClass
fatalStyleback to summary
private ValueExpression fatalStyle
infoClassback to summary
private ValueExpression infoClass
infoStyleback to summary
private ValueExpression infoStyle
langback to summary
private ValueExpression lang
roleback to summary
private ValueExpression role
showDetailback to summary
private ValueExpression showDetail
showSummaryback to summary
private ValueExpression showSummary
styleback to summary
private ValueExpression style
styleClassback to summary
private ValueExpression styleClass
titleback to summary
private ValueExpression title
tooltipback to summary
private ValueExpression tooltip
warnClassback to summary
private ValueExpression warnClass
warnStyleback to summary
private ValueExpression warnStyle

Constructor Detail

MessageTagback to summary
public MessageTag()

Method Detail

doEndTagback to summary
public int doEndTag() throws JspException

Overrides javax.faces.webapp.UIComponentClassicTagBase.doEndTag.

Implements javax.servlet.jsp.tagext.Tag.doEndTag.

Doc from javax.servlet.jsp.tagext.Tag.doEndTag.

Process the end tag for this instance. This method is invoked by the JSP page implementation object on all Tag handlers.

This method will be called after returning from doStartTag. The body of the action may or may not have been evaluated, depending on the return value of doStartTag.

If this method returns EVAL_PAGE, the rest of the page continues to be evaluated. If this method returns SKIP_PAGE, the rest of the page is not evaluated, the request is completed, and the doEndTag() methods of enclosing tags are not invoked. If this request was forwarded or included from another page (or Servlet), only the current page evaluation is stopped.

The JSP container will resynchronize the values of any AT_BEGIN and AT_END variables (defined by the associated TagExtraInfo or TLD) after the invocation of doEndTag().

Returns:int

indication of whether to continue evaluating the JSP page.

Exceptions
JspException:
if an error occurred while processing this tag
doStartTagback to summary
public int doStartTag() throws JspException

Overrides javax.faces.webapp.UIComponentClassicTagBase.doStartTag.

Implements javax.servlet.jsp.tagext.Tag.doStartTag.

Doc from javax.servlet.jsp.tagext.Tag.doStartTag.

Process the start tag for this instance. This method is invoked by the JSP page implementation object.

The doStartTag method assumes that the properties pageContext and parent have been set. It also assumes that any properties exposed as attributes have been set too. When this method is invoked, the body has not yet been evaluated.

This method returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED to indicate that the body of the action should be evaluated or SKIP_BODY to indicate otherwise.

When a Tag returns EVAL_BODY_INCLUDE the result of evaluating the body (if any) is included into the current "out" JspWriter as it happens and then doEndTag() is invoked.

BodyTag.EVAL_BODY_BUFFERED is only valid if the tag handler implements BodyTag.

The JSP container will resynchronize the values of any AT_BEGIN and NESTED variables (defined by the associated TagExtraInfo or TLD) after the invocation of doStartTag(), except for a tag handler implementing BodyTag whose doStartTag() method returns BodyTag.EVAL_BODY_BUFFERED.

Returns:int

EVAL_BODY_INCLUDE if the tag wants to process body, SKIP_BODY if it does not want to process it.

Exceptions
JspException:
if an error occurred while processing this tag
getComponentTypeback to summary
public String getComponentType()

Implements abstract javax.faces.webapp.UIComponentTagBase.getComponentType.

Doc from javax.faces.webapp.UIComponentTagBase.getComponentType.

Return the component type for the component that is or will be bound to this tag. This value can be passed to javax.faces.application.Application#createComponent to create the UIComponent instance for this tag. Subclasses must override this method to return the appropriate value.

Returns:String

the component type

getDebugStringback to summary
public String getDebugString()
getRendererTypeback to summary
public String getRendererType()

Implements abstract javax.faces.webapp.UIComponentTagBase.getRendererType.

Doc from javax.faces.webapp.UIComponentTagBase.getRendererType.

Return the rendererType property that selects the Renderer to be used for encoding this component, or null to ask the component to render itself directly. Subclasses must override this method to return the appropriate value.

Returns:String

the renderer type

releaseback to summary
public void release()

Overrides javax.faces.webapp.UIComponentELTag.release.

Implements javax.servlet.jsp.tagext.Tag.release.

Doc from javax.faces.webapp.UIComponentELTag.release.

Release any resources allocated during the execution of this tag handler.

setDirback to summary
public void setDir(ValueExpression dir)
setErrorClassback to summary
public void setErrorClass(ValueExpression errorClass)
setErrorStyleback to summary
public void setErrorStyle(ValueExpression errorStyle)
setFatalClassback to summary
public void setFatalClass(ValueExpression fatalClass)
setFatalStyleback to summary
public void setFatalStyle(ValueExpression fatalStyle)
setForback to summary
public void setFor(ValueExpression _for)
setInfoClassback to summary
public void setInfoClass(ValueExpression infoClass)
setInfoStyleback to summary
public void setInfoStyle(ValueExpression infoStyle)
setLangback to summary
public void setLang(ValueExpression lang)
setPropertiesback to summary
protected void setProperties(UIComponent component)

Overrides javax.faces.webapp.UIComponentELTag.setProperties.

Doc from javax.faces.webapp.UIComponentELTag.setProperties.

Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. This method must be called ONLY if the specified UIComponent was in fact created during the execution of this tag handler instance, and this call will occur BEFORE the UIComponent is added to the view.

Tag subclasses that want to support additional set properties must ensure that the base class setProperties() method is still called. A typical implementation that supports extra properties foo and bar would look something like this:

protected void setProperties(UIComponent component) {
  super.setProperties(component);
  if (foo != null) {
    component.setAttribute("foo", foo);
  }
  if (bar != null) {
    component.setAttribute("bar", bar);
  }
}

The default implementation overrides the following properties:

  • rendered - Set if a value for the rendered property is specified for this tag handler instance.
  • rendererType - Set if the getRendererType() method returns a non-null value.
Parameters
component:UIComponent

UIComponent whose properties are to be overridden

setRoleback to summary
public void setRole(ValueExpression role)
setShowDetailback to summary
public void setShowDetail(ValueExpression showDetail)
setShowSummaryback to summary
public void setShowSummary(ValueExpression showSummary)
setStyleback to summary
public void setStyle(ValueExpression style)
setStyleClassback to summary
public void setStyleClass(ValueExpression styleClass)
setTitleback to summary
public void setTitle(ValueExpression title)
setTooltipback to summary
public void setTooltip(ValueExpression tooltip)
setWarnClassback to summary
public void setWarnClass(ValueExpression warnClass)
setWarnStyleback to summary
public void setWarnStyle(ValueExpression warnStyle)