|
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
public abstract class AbstractHtmlActionSourceComponentTag
AbstractHtmlActionSourceComponentTag is a convenience base class that implements attributes needed for any concrete HTML action source jsp tag.
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 | |
---|---|
AbstractHtmlActionSourceComponentTag()
|
Method Summary | |
---|---|
java.lang.String |
getAction()
Returns the action value. |
java.lang.String |
getActionListener()
Returns the actionListener value. |
java.lang.String |
getImmediate()
Returns the immediate value. |
void |
release()
Release any resources allocated during the execution of this tag handler. |
void |
setAction(java.lang.String action)
Sets the action attribute. |
void |
setActionListener(java.lang.String actionListener)
Sets the actionListener attribute. |
protected void |
setActionListenerProperty(UIComponent component)
Sets the actionListener property on the associated UIComponent component. |
protected void |
setActionProperty(UIComponent component)
Sets the action property on the associated UIComponent component. |
void |
setImmediate(java.lang.String immediate)
Sets the immediate attribute. |
protected void |
setImmediateProperty(UIComponent component)
Sets the boolean immediate property on the associated UIComponent component. |
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:
|
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, getComponentType, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, getRendererType, 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 AbstractHtmlActionSourceComponentTag()
Method Detail |
---|
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 AbstractHtmlEventHandlerComponentTag
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 AbstractHtmlEventHandlerComponentTag
component
- UIComponent
whose properties are to be
overriddenprotected void setActionProperty(UIComponent component)
component
- The associated UIComponentprotected void setActionListenerProperty(UIComponent component)
component
- The associated UIComponentprotected void setImmediateProperty(UIComponent component)
component
- The associated UIComponentpublic final java.lang.String getAction()
public final void setAction(java.lang.String action)
action
- The action value.public final java.lang.String getActionListener()
public final void setActionListener(java.lang.String actionListener)
actionListener
- The actionListener value.public final java.lang.String getImmediate()
public final void setImmediate(java.lang.String immediate)
immediate
- The immediate value.
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |