nl.gx.webmanager.taglib.util
Class IsActiveTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by nl.gx.webmanager.taglib.util.IsActiveTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class IsActiveTag
extends javax.servlet.jsp.tagext.SimpleTagSupport

This tag returns if the object that is specified comes from a component that is currently active. For example: returns false when invoked on an element that is contained by a WCB that is in the RESOLVED state (currently not running).
Example of usage:

 < wm:isActive var="componentLoaded" object="${componentObject}" />
 < c:if test="componentLoaded" >
 ...
 < /c:if >
 

Author:
ivol

Constructor Summary
IsActiveTag()
           
 
Method Summary
 void doTag()
          Sets the key in the pageContext specified by attribute var or otherwise to the JSP output writer
 java.lang.Object getObject()
          Return the Java object to check.
 java.lang.String getVar()
          Return the name of the JSP variable to store the result in or null if not set.
 void setObject(java.lang.Object object)
          Specifies the Java object to check.
 void setVar(java.lang.String var)
          Specifies the JSP variable to store the result in.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsActiveTag

public IsActiveTag()
Method Detail

getVar

public java.lang.String getVar()
Return the name of the JSP variable to store the result in or null if not set.

Returns:
the name of the variable to put the result value in

setVar

public void setVar(java.lang.String var)
Specifies the JSP variable to store the result in.

Parameters:
var - the name of the JSP variable to store the result in

getObject

public java.lang.Object getObject()
Return the Java object to check.

Returns:
the object to evaluate

setObject

public void setObject(java.lang.Object object)
Specifies the Java object to check.

Parameters:
object - the object to evaluate

doTag

public void doTag()
           throws javax.servlet.jsp.JspException
Sets the key in the pageContext specified by attribute var or otherwise to the JSP output writer

Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException
See Also:
SimpleTag.doTag()


Copyright © 2007-2011 GX Software BV. All Rights Reserved.