org.apache.struts.faces.taglib
Class HtmlTag

java.lang.Object
  |
  +--javax.faces.webapp.UIComponentTag
        |
        +--org.apache.struts.faces.taglib.AbstractFacesTag
              |
              +--org.apache.struts.faces.taglib.HtmlTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class HtmlTag
extends AbstractFacesTag

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

Version:
$Revision: 1.2 $ $Date: 2003/06/04 17:38:14 $
Author:
Craig R. McClanahan

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, valueRef
 
Fields inherited from class javax.faces.webapp.UIComponentTag
context, id, pageContext, rendered, renderedSet
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
HtmlTag()
           
 
Method Summary
 int doStartTag()
          Override doStartTag() method to also set a page context attribute if xhtml is >true.
 java.lang.String getComponentType()
          Return the type of component to be created for this tag.
 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, setValueRef
 
Methods inherited from class javax.faces.webapp.UIComponentTag
doEndTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildIndex, getComponent, getCreated, getDoEndValue, getDoStartValue, getFacetName, getParent, getParentUIComponentTag, incrementChildIndex, isSuppressed, setId, setPageContext, setParent, setRendered, setupResponseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

getComponentType

public java.lang.String getComponentType()

Return the type of component to be created for this tag.

Specified by:
getComponentType 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.UIComponentTag
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