This project has retired. For details please refer to its Attic page.
InsertAttributeTag (Tiles 2 2.0.7 API)

org.apache.tiles.jsp.taglib
Class InsertAttributeTag

Package class diagram package InsertAttributeTag
java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.tiles.jsp.taglib.TilesBodyTag
              extended by org.apache.tiles.jsp.taglib.RoleSecurityTagSupport
                  extended by org.apache.tiles.jsp.taglib.ContainerTagSupport
                      extended by org.apache.tiles.jsp.taglib.RenderTagSupport
                          extended by org.apache.tiles.jsp.taglib.InsertAttributeTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, PutAttributeTagParent
Direct Known Subclasses:
GetAsStringTag

public class InsertAttributeTag
extends RenderTagSupport

This is the tag handler for <tiles:attribute>, which defines an attribute. If the attribute value is a template or a definition, its attributes and its template can be overridden.

Version:
$Rev: 727715 $ $Date: 2008-12-18 14:06:06 +0100 (Thu, 18 Dec 2008) $
See Also:
Serialized Form

Field Summary
protected  AttributeContext evaluatingContext
          The context used to evaluate the attribute.
protected  String name
          Name to insert.
protected  Object value
          The value of the attribute.
 
Fields inherited from class org.apache.tiles.jsp.taglib.RenderTagSupport
flush, ignore, preparer
 
Fields inherited from class org.apache.tiles.jsp.taglib.ContainerTagSupport
attributeContext, container
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
InsertAttributeTag()
           
 
Method Summary
 String getName()
          Returns the name of the attribute.
 Object getValue()
          Get the value.
protected  void render()
          Render the specified content.
protected  void render(Attribute attr)
          Renders an attribute for real.
protected  void reset()
          Release any per-invocation resources, resetting any resources or state that should be cleared between successive invocations of Tag.doEndTag() and Tag.doStartTag().
 void setName(String value)
          Sets the name of the attribute.
 void setValue(Object value)
          Set the value.
protected  void startContext(PageContext context)
          Starts the context when entering the tag.
 
Methods inherited from class org.apache.tiles.jsp.taglib.RenderTagSupport
doStartTag, execute, getPreparer, isFlush, isIgnore, processNestedTag, setFlush, setIgnore, setPreparer
 
Methods inherited from class org.apache.tiles.jsp.taglib.ContainerTagSupport
doEndTag, endContext, release
 
Methods inherited from class org.apache.tiles.jsp.taglib.RoleSecurityTagSupport
getRole, isAccessAllowed, setRole
 
Methods inherited from class org.apache.tiles.jsp.taglib.TilesBodyTag
doCatch, doFinally
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, 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.Tag
getParent, setPageContext, setParent
 

Field Detail

name

protected String name
Name to insert.


value

protected Object value
The value of the attribute.


evaluatingContext

protected AttributeContext evaluatingContext
The context used to evaluate the attribute.

Constructor Detail

InsertAttributeTag

public InsertAttributeTag()
Method Detail

setName

public void setName(String value)
Sets the name of the attribute.

Parameters:
value - The name of the attribute.

getName

public String getName()
Returns the name of the attribute.

Returns:
The name of the attribute.

getValue

public Object getValue()
Get the value.

Returns:
The value.

setValue

public void setValue(Object value)
Set the value.

Parameters:
value - The new value

reset

protected void reset()
Release any per-invocation resources, resetting any resources or state that should be cleared between successive invocations of Tag.doEndTag() and Tag.doStartTag().

Overrides:
reset in class RenderTagSupport

render

protected void render()
               throws JspException,
                      TilesException,
                      IOException
Render the specified content.

Specified by:
render in class RenderTagSupport
Throws:
JspException - if a jsp exception occurs.
TilesException - if a prepare or render exception occurs.
IOException - if an io exception occurs.

startContext

protected void startContext(PageContext context)
Starts the context when entering the tag.

Overrides:
startContext in class ContainerTagSupport
Parameters:
context - The page context to use.

render

protected void render(Attribute attr)
               throws TilesException,
                      IOException
Renders an attribute for real.

Parameters:
attr - The attribute to render.
Throws:
TilesException - If something goes wrong during rendering.
IOException - If something goes wrong during the reading of definition files.


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.