|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.springframework.web.servlet.tags.RequestContextAwareTag
org.springframework.web.servlet.tags.HtmlEscapingAwareTag
net.sf.springlayout.web.layout.taglib.LayoutBindTag
net.sf.springlayout.web.layout.taglib.AbstractFieldTag
net.sf.springlayout.web.layout.taglib.AbstractHtmlAttributesTag
net.sf.springlayout.web.layout.taglib.AbstractHtmlInputAttributesTag
net.sf.springlayout.web.layout.taglib.InputFieldTag
public class InputFieldTag
Generates an input field bound to the specified path and field definition. Allows html attributes to be passed throught to the input control as well as client-side type validation.
Field Summary | |
---|---|
static java.lang.String |
ALT_ATTRIBUTE
The name of the ' alt ' attribute. |
static java.lang.String |
MAXLENGTH_ATTRIBUTE
The name of the ' maxlength ' attribute. |
static java.lang.String |
ONSELECT_ATTRIBUTE
The name of the ' onselect ' attribute. |
static java.lang.String |
READONLY_ATTRIBUTE
The name of the ' readonly ' attribute. |
static java.lang.String |
SIZE_ATTRIBUTE
The name of the ' size ' attribute. |
Fields inherited from class net.sf.springlayout.web.layout.taglib.AbstractHtmlInputAttributesTag |
---|
ACCESSKEY_ATTRIBUTE, disabled, DISABLED_ATTRIBUTE, ONBLUR_ATTRIBUTE, ONFOCUS_ATTRIBUTE |
Fields inherited from class net.sf.springlayout.web.layout.taglib.AbstractHtmlAttributesTag |
---|
CLASS_ATTRIBUTE, cssErrorClass, DIR_ATTRIBUTE, LANG_ATTRIBUTE, mode, ONCHANGE_ATTRIBUTE, ONCLICK_ATTRIBUTE, ONDBLCLICK_ATTRIBUTE, ONKEYDOWN_ATTRIBUTE, ONKEYPRESS_ATTRIBUTE, ONKEYUP_ATTRIBUTE, ONMOUSEDOWN_ATTRIBUTE, ONMOUSEMOVE_ATTRIBUTE, ONMOUSEOUT_ATTRIBUTE, ONMOUSEOVER_ATTRIBUTE, ONMOUSEUP_ATTRIBUTE, prependMap, STYLE_ATTRIBUTE, TABINDEX_ATTRIBUTE, TITLE_ATTRIBUTE |
Fields inherited from class net.sf.springlayout.web.layout.taglib.AbstractFieldTag |
---|
config, emptyDisplayString, fieldInstance |
Fields inherited from class net.sf.springlayout.web.layout.taglib.LayoutBindTag |
---|
ignoreNestedPath, path, pathIfNestedNull, previousStatus, status |
Fields inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag |
---|
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
InputFieldTag()
|
Method Summary | |
---|---|
protected void |
appendAfterFieldIcons(java.lang.StringBuffer output,
java.lang.String confirmedPath)
Appends any icons or javascript which need to be appended directly after the field is rendered. |
protected void |
appendEditModeOutput(java.lang.StringBuffer output)
Builds the ouput which the tag must supply in Edit mode. |
protected void |
appendInputAttributes(java.lang.StringBuffer attributeBuffer)
Appends the HTML Attributes specific to an input tag to the StringBuffer provided. |
protected void |
appendReadOnlyOutput(java.lang.StringBuffer output)
Builds the ouput which the tag must supply in ReadOnly mode. |
protected java.lang.String |
getBaseCssClass()
|
protected boolean |
isDisabled()
|
void |
setAlt(java.lang.String alt)
Sets the alt for this InputFieldTag. |
void |
setMaxlength(java.lang.String maxlength)
Sets the maxlength for this InputFieldTag. |
void |
setOnselect(java.lang.String onselect)
Sets the onselect for this InputFieldTag. |
void |
setReadonly(java.lang.String readonly)
Sets the readonly for this InputFieldTag. |
void |
setSize(java.lang.String size)
Sets the size for this InputFieldTag. |
void |
setType(java.lang.String type)
Sets the type for this InputFieldTag. |
Methods inherited from class net.sf.springlayout.web.layout.taglib.AbstractHtmlInputAttributesTag |
---|
addToFieldSet, appendCommonHtmlAttributes, appendContextSensitiveHelp, doFieldStartTag, getHelpMessage, setAccesskey, setDisabled, setHelpMessage, setHelpMessageKey, setOnblur, setOnfocus |
Methods inherited from class net.sf.springlayout.web.layout.taglib.AbstractHtmlAttributesTag |
---|
appendAllApplicableCssClasses, appendAttribute, getCssClass, setCssClass, setCssErrorClass, setCssStyle, setDir, setLang, setMode, setOnchange, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setTabindex, setTitle |
Methods inherited from class net.sf.springlayout.web.layout.taglib.AbstractFieldTag |
---|
doStartTagInternal, getFieldDefinition, getGroupSize, getOutput, getWrappedCommand, isGroupedField, setEmptyDisplayString, setOutput |
Methods inherited from class net.sf.springlayout.web.layout.taglib.LayoutBindTag |
---|
doEndTag, doFinally, getEditor, getErrors, getPath, getProperty, isIgnoreNestedPath, setIgnoreNestedPath, setPath |
Methods inherited from class org.springframework.web.servlet.tags.HtmlEscapingAwareTag |
---|
isHtmlEscape, setHtmlEscape |
Methods inherited from class org.springframework.web.servlet.tags.RequestContextAwareTag |
---|
doCatch, doStartTag, getRequestContext |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MAXLENGTH_ATTRIBUTE
maxlength
' attribute.
public static final java.lang.String ALT_ATTRIBUTE
alt
' attribute.
public static final java.lang.String ONSELECT_ATTRIBUTE
onselect
' attribute.
public static final java.lang.String SIZE_ATTRIBUTE
size
' attribute.
public static final java.lang.String READONLY_ATTRIBUTE
readonly
' attribute.
Constructor Detail |
---|
public InputFieldTag()
Method Detail |
---|
public void setAlt(java.lang.String alt)
alt
- Sets the alt for this InputFieldTag.public void setMaxlength(java.lang.String maxlength)
maxlength
- Sets the maxlength for this InputFieldTag.public void setOnselect(java.lang.String onselect)
onselect
- Sets the onselect for this InputFieldTag.public void setType(java.lang.String type)
type
- The type for this InputFieldTag.public void setReadonly(java.lang.String readonly)
readonly
- Sets the readonly for this InputFieldTag.public void setSize(java.lang.String size)
size
- Sets the size for this InputFieldTag.protected void appendEditModeOutput(java.lang.StringBuffer output)
AbstractFieldTag
appendEditModeOutput
in class AbstractFieldTag
protected void appendAfterFieldIcons(java.lang.StringBuffer output, java.lang.String confirmedPath)
output
- the StringBuffer to append the icon or javascript to.confirmedPath
- the confirmedPath of the control associated with the icons or javascriptprotected void appendReadOnlyOutput(java.lang.StringBuffer output)
AbstractFieldTag
appendReadOnlyOutput
in class AbstractFieldTag
protected void appendInputAttributes(java.lang.StringBuffer attributeBuffer)
attributeBuffer
- the StringBuffer to append the HTML Attributes to.protected java.lang.String getBaseCssClass()
getBaseCssClass
in class AbstractHtmlAttributesTag
protected boolean isDisabled()
isDisabled
in class AbstractHtmlInputAttributesTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |