org.apache.struts.faces.taglib
Class MessageTag

java.lang.Object
  |
  +--javax.faces.webapp.UIComponentTag
        |
        +--org.apache.struts.faces.taglib.AbstractFacesTag
              |
              +--org.apache.struts.faces.taglib.MessageTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, 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.2 $ $Date: 2003/06/04 17:38:14 $
Author:
Craig R. McClanahan

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, valueRef
 
Fields inherited from class javax.faces.webapp.UIComponentTag
context, id, pageContext, rendered, renderedSet
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
MessageTag()
           
 
Method Summary
 java.lang.String getComponentType()
          Return the type of component to be created for 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, setValueRef
 
Methods inherited from class javax.faces.webapp.UIComponentTag
doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildIndex, getComponent, getCreated, getDoEndValue, getDoStartValue, getFacetName, getParent, getParentUIComponentTag, incrementChildIndex, isSuppressed, setId, setPageContext, setParent, setRendered, setupResponseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getComponentType

public java.lang.String getComponentType()

Return the type of component to be created for this tag.

Specified by:
getComponentType 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