|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.webapp.UIComponentTag de.mindmatters.faces.taglib.jsp.AbstractUIComponentTag de.mindmatters.faces.taglib.jsp.AbstractHtmlComponentTag de.mindmatters.faces.taglib.jsp.AbstractHtmlEventHandlerComponentTag de.mindmatters.faces.taglib.jsp.AbstractHtmlActionSourceComponentTag de.mindmatters.faces.taglib.jsp.HtmlFormTag
public class HtmlFormTag
HtmlFormTag represents the HTML jsp tag for UIComponent
HtmlForm
.
Field Summary |
---|
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 | |
---|---|
HtmlFormTag()
|
Method Summary | |
---|---|
java.lang.String |
getAccept()
Returns the accept attribute value. |
java.lang.String |
getAcceptCharset()
Returns the acceptCharset attribute value. |
java.lang.String |
getComponentType()
Return the component type for the component that is or will be bound to this tag. |
java.lang.String |
getEnctype()
Returns the enctype attribute value. |
java.lang.String |
getMethod()
Returns the method attribute value. |
java.lang.String |
getName()
Returns the name attribute value. |
java.lang.String |
getOnreset()
Returns the onreset attribute value. |
java.lang.String |
getOnsubmit()
Returns the onsubmit attribute value. |
java.lang.String |
getRendererType()
Return the |
java.lang.String |
getTarget()
Returns the target attribute value. |
java.lang.String |
getTransient()
Returns the transient attribute value. |
void |
release()
Release any resources allocated during the execution of this tag handler. |
void |
setAccept(java.lang.String accept)
Sets the accept attribute value. |
void |
setAcceptCharset(java.lang.String acceptCharset)
Sets the acceptCharset attribute value. |
protected void |
setActionProperty(UIComponent component)
Sets the action property on the associated UIComponent component. |
void |
setEnctype(java.lang.String enctype)
Sets the enctype attribute value. |
void |
setMethod(java.lang.String method)
Sets the method attribute value. |
void |
setName(java.lang.String name)
Sets the name attribute value. |
void |
setOnreset(java.lang.String onreset)
Sets the onreset attribute value. |
void |
setOnsubmit(java.lang.String onsubmit)
Sets the onsubmit attribute value. |
protected void |
setProperties(UIComponent component)
Override properties and attributes of the specified component,
if the corresponding properties of this tag handler instance were
explicitly set. This method must be called ONLY
if the specified Tag subclasses that want to support additional set properties
must ensure that the base class protected void setProperties(UIComponent component) { super.setProperties(component); if (foo != null) { component.setAttribute("foo", foo); } if (bar != null) { component.setAttribute("bar", bar); } } The default implementation overrides the following properties:
|
void |
setTarget(java.lang.String target)
Sets the target attribute value. |
void |
setTransient(java.lang.String transientValue)
Sets the transient attribute value. |
Methods inherited from class de.mindmatters.faces.taglib.jsp.AbstractHtmlActionSourceComponentTag |
---|
getAction, getActionListener, getImmediate, setAction, setActionListener, setActionListenerProperty, setImmediate, setImmediateProperty |
Methods inherited from class de.mindmatters.faces.taglib.jsp.AbstractHtmlEventHandlerComponentTag |
---|
getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup |
Methods inherited from class de.mindmatters.faces.taglib.jsp.AbstractHtmlComponentTag |
---|
getDir, getLang, getStyle, getStyleClass, getTitle, setDir, setLang, setStyle, setStyleClass, setTitle |
Methods inherited from class de.mindmatters.faces.taglib.jsp.AbstractUIComponentTag |
---|
addValueBindingIfNecessary, setBooleanProperty, setStringProperty |
Methods inherited from class javax.faces.webapp.UIComponentTag |
---|
doEndTag, doStartTag, 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 |
Constructor Detail |
---|
public HtmlFormTag()
Method Detail |
---|
public java.lang.String getComponentType()
Return the component type for the component that is or will be
bound to this tag. This value can be passed to
Application.createComponent(java.lang.String)
to create
the UIComponent
instance for this tag. Subclasses must
override this method to return the appropriate value.
getComponentType
in class UIComponentTag
public java.lang.String getRendererType()
Return the rendererType
property that selects the
Renderer
to be used for encoding this component, or
null
to ask the component to render itself directly.
Subclasses must override this method to return the appropriate value.
getRendererType
in class UIComponentTag
public void release()
Release any resources allocated during the execution of this tag handler.
release
in interface javax.servlet.jsp.tagext.Tag
release
in class AbstractHtmlActionSourceComponentTag
protected void setProperties(UIComponent component)
Override properties and attributes of the specified component,
if the corresponding properties of this tag handler instance were
explicitly set. This method must be called ONLY
if the specified UIComponent
was in fact created during
the execution of this tag handler instance, and this call will occur
BEFORE the UIComponent
is added to
the view.
Tag subclasses that want to support additional set properties
must ensure that the base class setProperties()
method is still called. A typical implementation that supports
extra properties foo
and bar
would look
something like this:
protected void setProperties(UIComponent component) { super.setProperties(component); if (foo != null) { component.setAttribute("foo", foo); } if (bar != null) { component.setAttribute("bar", bar); } }
The default implementation overrides the following properties:
rendered
- Set if a value for the
rendered
property is specified for
this tag handler instance.rendererType
- Set if the getRendererType()
method returns a non-null value.
setProperties
in class AbstractHtmlActionSourceComponentTag
component
- UIComponent
whose properties are to be
overriddenprotected void setActionProperty(UIComponent component)
setActionProperty
in class AbstractHtmlActionSourceComponentTag
component
- The associated UIComponentpublic final java.lang.String getAccept()
public final void setAccept(java.lang.String accept)
accept
- The accept attribute valuepublic final java.lang.String getAcceptCharset()
public final void setAcceptCharset(java.lang.String acceptCharset)
acceptCharset
- The acceptCharset attribute valuepublic final java.lang.String getEnctype()
public final void setEnctype(java.lang.String enctype)
enctype
- The enctype attribute valuepublic final java.lang.String getName()
public final void setName(java.lang.String name)
name
- The name attribute valuepublic final java.lang.String getOnreset()
public final void setOnreset(java.lang.String onreset)
onreset
- The onreset attribute valuepublic final java.lang.String getOnsubmit()
public final void setOnsubmit(java.lang.String onsubmit)
onsubmit
- The onsubmit attribute valuepublic final java.lang.String getTarget()
public final void setTarget(java.lang.String target)
target
- The target attribute valuepublic final java.lang.String getMethod()
public final void setMethod(java.lang.String method)
method
- The method attribute value
java.lang.IllegalArgumentException
- if method is 'GET' and no ViewBuilder is configuredpublic final java.lang.String getTransient()
public final void setTransient(java.lang.String transientValue)
transientValue
- the transient value
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |