org.loom.tags.core
Class ButtonTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by org.loom.tags.AbstractTag
          extended by org.loom.tags.AbstractDecoratedTag
              extended by org.loom.tags.AbstractHtmlTag
                  extended by org.loom.tags.AbstractFormFieldTag
                      extended by org.loom.tags.core.ButtonTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag, Button, HtmlTag, LoomTag

@Tag(dynamicAttributes=true,
     bodyContent=EMPTY,
     example="<l:button/>\n<l:button value=\"save\" event=\"save\"/>")
@ExcludeProperties(value={"accept","label","name"})
public class ButtonTag
extends AbstractFormFieldTag
implements Button

Submit, Reset or Push button. This component will generate a input type="{ button | reset | submit}" tag. The value property is only used to print the button text.


Field Summary
 
Fields inherited from class org.loom.tags.AbstractDecoratedTag
decorator
 
Fields inherited from class org.loom.tags.AbstractTag
expressionLanguageProxy, loomServletRequestFactory, out, repository, request, response
 
Constructor Summary
ButtonTag()
           
 
Method Summary
 void doTagImpl()
          The method that must be implemented by the child class
 java.lang.String getType()
           
protected  void initTag()
          Initializes the tag attributes
 void setEvent(java.lang.String event)
           
 void setType(java.lang.String type)
          the button type, possible values are "button", "reset" and "submit" (default)
 void setValue(java.lang.String value)
           
 
Methods inherited from class org.loom.tags.AbstractFormFieldTag
getForm, getHelpLine, getLabel, getNormalizedName, getTabindex, isDisabled, printParentAttributes, setAlt, setDisabled, setForm, setHelpLine, setLabel, setName, setTabindex
 
Methods inherited from class org.loom.tags.AbstractHtmlTag
addCssClass, getAccesskey, getCssBuilder, getCssClass, getDir, getId, getLang, getName, getStyle, getTitle, getTranslatedTitle, identify, isCssProcessed, isIf, isTranslateTitle, renderTag, setAccesskey, setCssClass, setCssProcessed, setDir, setId, setIf, setLang, setStyle, setTitle, setTranslateTitle
 
Methods inherited from class org.loom.tags.AbstractDecoratedTag
doTag, getDecorator, getDecoratorInstance, setDecorator
 
Methods inherited from class org.loom.tags.AbstractTag
createWriterWrapper, doBody, doBufferedBody, endTag, evaluateExpression, getActionProperty, getAncestorWithClass, getBufferedBody, getExtendedAttributes, getMessagesRepository, getPageContext, getRequest, getResponse, getScopedAttribute, getWriter, removeScopedAttribute, setDynamicAttribute, setExtendedAttribute, setJspContext, setRequest, setResponse, setScopedAttribute, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.loom.tags.HtmlTag
addCssClass, getCssBuilder
 
Methods inherited from interface org.loom.tags.LoomTag
getExtendedAttributes, getRequest, getScopedAttribute, setExtendedAttribute, setScopedAttribute
 

Constructor Detail

ButtonTag

public ButtonTag()
Method Detail

initTag

protected void initTag()
Description copied from class: AbstractTag
Initializes the tag attributes

Overrides:
initTag in class AbstractFormFieldTag

doTagImpl

public void doTagImpl()
               throws javax.servlet.jsp.JspException,
                      java.io.IOException
Description copied from class: AbstractTag
The method that must be implemented by the child class

Specified by:
doTagImpl in class AbstractTag
Throws:
javax.servlet.jsp.JspException
java.io.IOException

setValue

public void setValue(java.lang.String value)

getType

public java.lang.String getType()

setType

@Attribute
public void setType(java.lang.String type)
the button type, possible values are "button", "reset" and "submit" (default)

Overrides:
setType in class AbstractFormFieldTag

setEvent

public void setEvent(java.lang.String event)