org.zkoss.jsp.zul
Class ZScriptTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.zkoss.jsp.zul.impl.AbstractTag
          extended by org.zkoss.jsp.zul.ZScriptTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class ZScriptTag
extends AbstractTag

A Jsp Tag class to handle the zscript element. This tag should be declared under PageTag or any Component tags.

Author:
Ian Tsai

Constructor Summary
ZScriptTag()
           
 
Method Summary
 void doTag()
          add body content to parent's zscript info.
 java.lang.String getLanguage()
          Returns the name of the scripting language in this ZScript tag.
 boolean isDeferred()
          Returns whether to defer the execution of this zscript.
 void setDeferred(boolean deferred)
          Sets whether to defer the execution of this zscript.
 void setLanguage(java.lang.String lang)
          Sets the name of the scripting language in this ZScript tag.
 void setParent(javax.servlet.jsp.tagext.JspTag parent)
          Sets the parent tag.
 
Methods inherited from class org.zkoss.jsp.zul.impl.AbstractTag
getIf, getUnless, isEffective, setIf, setUnless
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZScriptTag

public ZScriptTag()
Method Detail

doTag

public void doTag()
           throws javax.servlet.jsp.JspException,
                  java.io.IOException
add body content to parent's zscript info.

Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException
java.io.IOException

setParent

public void setParent(javax.servlet.jsp.tagext.JspTag parent)
Sets the parent tag. Deriving class rarely need to invoke this method.

Specified by:
setParent in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
setParent in class javax.servlet.jsp.tagext.SimpleTagSupport

isDeferred

public boolean isDeferred()
Returns whether to defer the execution of this zscript.

Default: false.


setDeferred

public void setDeferred(boolean deferred)
Sets whether to defer the execution of this zscript.

Parameters:
deferred - whether to defer the execution.

getLanguage

public java.lang.String getLanguage()
Returns the name of the scripting language in this ZScript tag.

Default: null (use what is defined in RootTag.getZScriptLanguage()).

Returns:
the name of the scripting language in this ZScript tag.

setLanguage

public void setLanguage(java.lang.String lang)
Sets the name of the scripting language in this ZScript tag.

Default: Java.

Parameters:
lang - the name of the scripting language, such as Java, Ruby and Groovy.


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.