org.apache.struts.faces.taglib
Class HtmlTag

java.lang.Object
  extended byjavax.faces.webapp.UIComponentTag
      extended byorg.apache.struts.faces.taglib.AbstractFacesTag
          extended byorg.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:
$Rev: 54934 $ $Date: 2004-10-16 18:07:50 +0100 (Sat, 16 Oct 2004) $

Field Summary
private  java.lang.String locale
          Set a locale if not set yet.
private  java.lang.String xhtml
          Render Struts HTML tags as xhtml.
 
Fields inherited from class org.apache.struts.faces.taglib.AbstractFacesTag
bundle, style, styleClass, value
 
Fields inherited from class javax.faces.webapp.UIComponentTag
pageContext
 
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.
 void release()
          Release resources allocated to this tag instance.
 void setLocale(java.lang.String locale)
           
protected  void setProperties(javax.faces.component.UIComponent component)
          Override attributes set on this tag instance.
 void setXhtml(java.lang.String xhtml)
           
 
Methods inherited from class org.apache.struts.faces.taglib.AbstractFacesTag
setBooleanAttribute, setBundle, setIntegerAttribute, setStringAttribute, setStyle, setStyleClass, setValue
 
Methods inherited from class javax.faces.webapp.UIComponentTag
doEndTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, isSuppressed, isValueReference, setBinding, 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 java.lang.String locale

Set a locale if not set yet.


xhtml

private java.lang.String xhtml

Render Struts HTML tags as xhtml.

Constructor Detail

HtmlTag

public HtmlTag()
Method Detail

setLocale

public void setLocale(java.lang.String locale)

setXhtml

public void setXhtml(java.lang.String 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.

Throws:
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

setProperties

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

Override attributes set on this tag instance.

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


Copyright ? 2003-2004 - The Apache Software Foundation