org.codehaus.groovy.grails.web.taglib.jsp
Class JspInvokeGrailsTagLibTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.codehaus.groovy.grails.web.taglib.jsp.JspInvokeGrailsTagLibTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
JspActionSubmitTag, JspCheckboxTag, JspCurrencySelectTag, JspDatePickerTag, JspEachErrorTag, JspFormRemoteTag, JspFormTag, JspHasErrorsTag, JspLinkTag, JspLocaleSelectTag, JspMessageTag, JspRemoteFunctionTag, JspRemoteLinkTag, JspRenderErrorsTag, JspRenderTag, JspSelectTag, JspSubmitToRemoteTag, JspTimeZoneSelectTag

public class JspInvokeGrailsTagLibTag
extends javax.servlet.jsp.tagext.BodyTagSupport
implements javax.servlet.jsp.tagext.DynamicAttributes

A tag that invokes a tag defined in a the Grails dynamic tag library. Authors of Grails tags who want their tags to work in JSP should sub-class this class and call "setTagName" to set the tagName of the tag within the Grails taglib This tag can of course be used standalone to invoke a Grails tag from JSP:

Since:
16-Jan-2006
Author:
Graeme Rocher
See Also:
Serialized Form

Field Summary
protected  java.util.Map attributes
           
 
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
JspInvokeGrailsTagLibTag()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
protected  int doStartTagInternal()
           
 java.lang.String getTagName()
           
 void setDynamicAttribute(java.lang.String uri, java.lang.String localName, java.lang.Object value)
           
 void setTagName(java.lang.String tagName)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, release, 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

attributes

protected java.util.Map attributes
Constructor Detail

JspInvokeGrailsTagLibTag

public JspInvokeGrailsTagLibTag()
Method Detail

doStartTag

public final int doStartTag()
                     throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doStartTagInternal

protected int doStartTagInternal()

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

getTagName

public java.lang.String getTagName()

setTagName

public void setTagName(java.lang.String tagName)

setDynamicAttribute

public final void setDynamicAttribute(java.lang.String uri,
                                      java.lang.String localName,
                                      java.lang.Object value)
                               throws javax.servlet.jsp.JspException
Specified by:
setDynamicAttribute in interface javax.servlet.jsp.tagext.DynamicAttributes
Throws:
javax.servlet.jsp.JspException


Copyright (c) 2005-2006 The Grails project