org.apache.beehive.netui.tags.javascript
Class ScriptBlock

Object
  extended by SimpleTagSupport
      extended by AbstractSimpleTag
          extended by ScriptBlock
All Implemented Interfaces:
JspTag, SimpleTag, INetuiTag

public class ScriptBlock
extends AbstractSimpleTag

This class will output a script block into the generated HTML. The primary reason for this class is to add the ability to add JavaScript either before or after the framework provided JavaScript.


Constructor Summary
ScriptBlock()
           
 
Method Summary
 void doTag()
          Render the content.
 String getTagName()
          Return the name of the Tag.
 void setPlacement(String placement)
          Place the JavaScript inside in relationship to the frameword generated JavaScript.
 
Methods inherited from class AbstractSimpleTag
getBufferBody, getHtmlTag, getIdForTagId, getInlineError, getPageContext, getScriptReporter, getUserLocale, hasErrors, registerTagError, registerTagError, reportErrors, rewriteName, setNonEmptyValueAttribute, setRequiredValueAttribute, write
 
Methods inherited from class SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptBlock

public ScriptBlock()
Method Detail

getTagName

public String getTagName()
Return the name of the Tag.

Specified by:
getTagName in interface INetuiTag
Specified by:
getTagName in class AbstractSimpleTag
Returns:
the name of the tag.

setPlacement

public void setPlacement(String placement)
Place the JavaScript inside in relationship to the frameword generated JavaScript.

Parameters:
placement - - The placement of the JavaScript

doTag

public void doTag()
           throws JspException,
                  IOException
Render the content.

Specified by:
doTag in interface SimpleTag
Overrides:
doTag in class SimpleTagSupport
Throws:
JspException - if a JSP exception has occurred
IOException