org.araneaframework.jsp.tag.uilib.form.element
Class BaseFormButtonTag

java.lang.Object
  extended byorg.araneaframework.jsp.tag.BaseTag
      extended byorg.araneaframework.jsp.tag.PresentationTag
          extended byorg.araneaframework.jsp.tag.uilib.form.BaseFormElementHtmlTag
              extended byorg.araneaframework.jsp.tag.uilib.form.element.BaseFormButtonTag
All Implemented Interfaces:
AttributedTagInterface, ContainedTagInterface, FormElementTagInterface, javax.servlet.jsp.tagext.JspTag, StyledTagInterface, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
FormButtonHtmlTag, FormLinkButtonHtmlTag

public class BaseFormButtonTag
extends BaseFormElementHtmlTag

Standard button form element base tag.

Author:
Oleg Mürk

Field Summary
protected  String onClickPrecondition
           
protected  boolean showLabel
           
protected  ButtonControl.ViewModel viewModel
           
 
Fields inherited from class org.araneaframework.jsp.tag.uilib.form.BaseFormElementHtmlTag
accessKey, accessKeyId, backgroundValidation, controlViewModel, derivedId, events, FORMELEMENT_SPAN_PREFIX, formElementViewModel, formFullId, formViewModel, globalUpdateRegions, id, localizedLabel, RENDER_DISABLED_DISABLED, RENDER_DISABLED_READONLY, tabindex, updateRegionNames, updateRegions, validateOnEvent
 
Fields inherited from class org.araneaframework.jsp.tag.PresentationTag
attributes, baseStyleClass, style, styleClass
 
Fields inherited from class org.araneaframework.jsp.tag.BaseTag
GLOBAL_CONTEXT_ENTRIES_KEY, pageContext, parent
 
Fields inherited from interface org.araneaframework.jsp.tag.basic.AttributedTagInterface
ATTRIBUTED_TAG_KEY, HTML_ELEMENT_KEY
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
BaseFormButtonTag()
           
 
Method Summary
protected  int doStartTag(Writer out)
          Internal callback: before tag.
 void setOnClickPrecondition(String onClickPrecondition)
           
 void setShowLabel(String showLabel)
           
 
Methods inherited from class org.araneaframework.jsp.tag.uilib.form.BaseFormElementHtmlTag
assertControlType, doEndTag, doFinally, evaluateDisabledRenderMode, getFullFieldId, getHasElementContextSpan, setAccessKeyId, setEvents, setGlobalUpdateRegions, setHasElementContextSpan, setId, setTabindex, setUpdateRegions, setValidateOnEvent, writeBackgroundValidationAttribute, writeFormElementContextClose, writeFormElementContextOpen, writeFormElementContextOpen, writeFormElementContextOpen, writeFormElementValidationErrorMessages, writeFormElementValidityMarkers, writeSubmitScriptForUiEvent, writeSubmitScriptForUiEvent
 
Methods inherited from class org.araneaframework.jsp.tag.PresentationTag
addAttribute, calculateStyleClass, getStyle, getStyleClass, setPageContext, setStyle, setStyleClass
 
Methods inherited from class org.araneaframework.jsp.tag.BaseTag
addContextEntry, doCatch, doEndTag, doStartTag, evaluate, evaluateNotNull, executeEndSubtag, executeEndTagAndUnregister, executeStartSubtag, executeSubtag, getConfiguration, getContextEntry, getContextWidget, getContextWidgetFullId, getEnvironment, getLocalizationContext, getOutputData, getParent, hideGlobalContextEntries, registerAndExecuteStartTag, registerSubtag, release, requireContextEntry, restoreGlobalContextEntries, setParent, unregisterSubtag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.araneaframework.jsp.tag.StyledTagInterface
setStyle, setStyleClass
 
Methods inherited from interface org.araneaframework.jsp.tag.ContainedTagInterface
doEndTag, doStartTag, release, setPageContext
 
Methods inherited from interface org.araneaframework.jsp.tag.basic.AttributedTagInterface
addAttribute
 

Field Detail

showLabel

protected boolean showLabel

onClickPrecondition

protected String onClickPrecondition

viewModel

protected ButtonControl.ViewModel viewModel
Constructor Detail

BaseFormButtonTag

public BaseFormButtonTag()
Method Detail

setShowLabel

public void setShowLabel(String showLabel)
Jsp.attribute:
type = "java.lang.String" required = "false" description = "Whether button shows its label."

setOnClickPrecondition

public void setOnClickPrecondition(String onClickPrecondition)
                            throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException
Jsp.attribute:
type = "java.lang.String" required = "false" description = "Precondition for deciding whether go to server side or not."

doStartTag

protected int doStartTag(Writer out)
                  throws Exception
Description copied from class: BaseTag
Internal callback: before tag.

Overrides:
doStartTag in class BaseFormElementHtmlTag
Throws:
Exception