net.sourceforge.jfacets.web.tags
Class UseFacetTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by net.sourceforge.jfacets.web.tags.FacetTagSupport
          extended by net.sourceforge.jfacets.web.tags.UseFacetTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class UseFacetTag
extends FacetTagSupport

A tag that allows to retrieve and use a facet from inside a JSP, a la .

Author:
VANKEISBELCK R�mi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
UseFacetTag()
           
 
Method Summary
protected  void checkAttributes()
          Checks if name has been supplied, and does preliminary initialization work (set to Object.class if no target type and target object supplied)
 int doStartTag()
           
protected  java.lang.Object getFacet()
           
 java.lang.String getVar()
           
 void setVar(java.lang.String var)
           
 
Methods inherited from class net.sourceforge.jfacets.web.tags.FacetTagSupport
getName, getProfileId, getTargetObject, getTargetObjectClass, resetAttributes, setName, setProfileId, setTargetObject, setTargetObjectClass
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UseFacetTag

public UseFacetTag()
Method Detail

getVar

public java.lang.String getVar()

setVar

public void setVar(java.lang.String var)

getFacet

protected java.lang.Object getFacet()
                             throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

doStartTag

public 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.TagSupport
Throws:
javax.servlet.jsp.JspException

checkAttributes

protected void checkAttributes()
                        throws javax.servlet.jsp.JspException
Description copied from class: FacetTagSupport
Checks if name has been supplied, and does preliminary initialization work (set to Object.class if no target type and target object supplied)

Overrides:
checkAttributes in class FacetTagSupport
Throws:
javax.servlet.jsp.JspException


Copyright © 2011. All Rights Reserved.