org.apache.struts.faces.taglib
Class HtmlTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.faces.webapp.FacesTag
              |
              +--org.apache.struts.faces.taglib.AbstractFacesTag
                    |
                    +--org.apache.struts.faces.taglib.HtmlTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class HtmlTag
extends AbstractFacesTag

Render an HTML <html> element for the Struts-Faces Integration Library.

Version:
$Revision: 1.1 $ $Date: 2003/03/07 03:22:44 $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
private  boolean locale
          Set a locale if not set yet.
private  boolean xhtml
          Render Struts HTML tags as xhtml.
 
Fields inherited from class org.apache.struts.faces.taglib.AbstractFacesTag
bundle, styleClass, value
 
Fields inherited from class javax.faces.webapp.FacesTag
childIndex, component, COMPONENT_STACK_ATTR, componentStack, context, created, modelReference, numChildren, rendered
 
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
HtmlTag()
           
 
Method Summary
 javax.faces.component.UIComponent createComponent()
          Create and return a new component to be associated with this tag.
 int doStartTag()
          Override doStartTag() method to also set a page context attribute if xhtml is >true.
 java.lang.String getRendererType()
          Return the rendererType to be used for rendering our component.
protected  void overrideProperties(javax.faces.component.UIComponent component)
          Override attributes set on this tag instance.
 void release()
          Release resources allocated to this tag instance.
 void setLocale(boolean locale)
           
 void setXhtml(boolean xhtml)
           
 
Methods inherited from class org.apache.struts.faces.taglib.AbstractFacesTag
setBundle, setStyleClass, setValue
 
Methods inherited from class javax.faces.webapp.FacesTag
doAfterBody, doEndTag, encodeBegin, encodeChildren, encodeEnd, findComponent, findComponentStack, getChildIndex, getComponent, getCreated, getDoAfterBodyValue, getDoEndValue, getDoStartValue, getModelReference, getNearestEnclosingFacesTag, getNumChildren, getRendered, incrementNumChildren, isSuppressed, setModelReference, setParent, setRendered, setupResponseWriter
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, 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.IterationTag
 

Field Detail

locale

private boolean locale

Set a locale if not set yet.


xhtml

private boolean xhtml

Render Struts HTML tags as xhtml.

Constructor Detail

HtmlTag

public HtmlTag()
Method Detail

setLocale

public void setLocale(boolean locale)

setXhtml

public void setXhtml(boolean xhtml)

createComponent

public javax.faces.component.UIComponent createComponent()

Create and return a new component to be associated with this tag.

Specified by:
createComponent in class AbstractFacesTag

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException

Override doStartTag() method to also set a page context attribute if xhtml is >true.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.faces.webapp.FacesTag
javax.servlet.jsp.JspException

getRendererType

public java.lang.String getRendererType()

Return the rendererType to be used for rendering our component.

Specified by:
getRendererType in class AbstractFacesTag

release

public void release()

Release resources allocated to this tag instance.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class AbstractFacesTag

overrideProperties

protected void overrideProperties(javax.faces.component.UIComponent component)

Override attributes set on this tag instance.

Overrides:
overrideProperties in class AbstractFacesTag
Parameters:
component - Component whose attributes should be overridden


Copyright ? 2003 - Apache Software Foundation