org.apache.struts.faces.taglib
Class MessageTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.faces.webapp.FacesTag
              |
              +--org.apache.struts.faces.taglib.AbstractFacesTag
                    |
                    +--org.apache.struts.faces.taglib.MessageTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class MessageTag
extends AbstractFacesTag

Render a localized message, with optional substitution parameters, for the Struts-Faces Integration Library.

Version:
$Revision: 1.1 $ $Date: 2003/03/07 03:22:44 $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
private  java.lang.String key
          Message key used to retrieve the requested message
 
Fields inherited from class org.apache.struts.faces.taglib.AbstractFacesTag
bundle, styleClass, value
 
Fields inherited from class javax.faces.webapp.FacesTag
childIndex, component, COMPONENT_STACK_ATTR, componentStack, context, created, modelReference, numChildren, rendered
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
MessageTag()
           
 
Method Summary
 javax.faces.component.UIComponent createComponent()
          Create and return a new component to be associated with this tag.
 java.lang.String getRendererType()
          Return the rendererType to be used for rendering our component.
protected  void overrideProperties(javax.faces.component.UIComponent component)
          Override attributes set on this tag instance.
 void release()
          Release any allocated resources.
 void setKey(java.lang.String key)
           
 
Methods inherited from class org.apache.struts.faces.taglib.AbstractFacesTag
setBundle, setStyleClass, setValue
 
Methods inherited from class javax.faces.webapp.FacesTag
doAfterBody, doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, findComponentStack, getChildIndex, getComponent, getCreated, getDoAfterBodyValue, getDoEndValue, getDoStartValue, getModelReference, getNearestEnclosingFacesTag, getNumChildren, getRendered, incrementNumChildren, isSuppressed, setModelReference, setParent, setRendered, setupResponseWriter
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.IterationTag
 

Field Detail

key

private java.lang.String key

Message key used to retrieve the requested message

Constructor Detail

MessageTag

public MessageTag()
Method Detail

setKey

public void setKey(java.lang.String key)

release

public void release()

Release any allocated resources.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class AbstractFacesTag

createComponent

public javax.faces.component.UIComponent createComponent()

Create and return a new component to be associated with this tag.

Specified by:
createComponent in class AbstractFacesTag

getRendererType

public java.lang.String getRendererType()

Return the rendererType to be used for rendering our component.

Specified by:
getRendererType in class AbstractFacesTag

overrideProperties

protected void overrideProperties(javax.faces.component.UIComponent component)

Override attributes set on this tag instance.

Overrides:
overrideProperties in class AbstractFacesTag
Parameters:
component - Component whose attributes should be overridden


Copyright ? 2003 - Apache Software Foundation