public class FormTag extends WrapBodyTag
IForm
then it is enabled only if the binded object is enabled.
When binded to an IForm
a state can be specified, if so it is enabled if and only if the
state is the current one.Modifier and Type | Class and Description |
---|---|
static class |
FormTag.ECSBaseAdapter |
static class |
FormTag.ECSBndsAdapter |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FORMS_ATTR |
Constructor and Description |
---|
FormTag() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createMangledName(net.infordata.ifw2.web.tags.IFormComponent comp) |
int |
doEndTag() |
int |
doStartTag() |
IForm |
getBindedForm() |
java.lang.String |
getClientScriptAccessCode() |
net.infordata.ifw2.web.tags.IFormComponent |
getComponent(java.lang.String name) |
java.lang.String |
getFormName() |
java.util.Map<java.lang.String,java.lang.Object> |
getFormScope() |
java.lang.String |
getHtmlFormScriptAccessCode() |
java.lang.String |
getMangledName() |
java.lang.String |
getName() |
javax.servlet.jsp.tagext.Tag |
getParent() |
net.infordata.ifw2.web.tags.IComponent |
getParentComponent() |
boolean |
isChainEnabled() |
boolean |
isEnabled() |
boolean |
isReadOnly() |
boolean |
isSubForm() |
void |
release() |
void |
setBind(java.lang.String formName) |
void |
setBindState(java.lang.String stateId) |
void |
setCssClass(java.lang.String cssClass) |
void |
setEnabled(boolean enabled) |
void |
setName(java.lang.String name) |
void |
setParentFromTagStack(boolean value) |
void |
setReadOnly(boolean readOnly) |
void |
setSkipFocus(boolean skipFocus) |
void |
setStyle(java.lang.String style) |
setIf, setPageContext
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getValue, getValues, removeValue, setId, setParent, setValue
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class WrapBodyTag
public final java.util.Map<java.lang.String,java.lang.Object> getFormScope()
public final void setName(java.lang.String name)
public final java.lang.String getName()
public final java.lang.String getMangledName()
public final java.lang.String createMangledName(net.infordata.ifw2.web.tags.IFormComponent comp)
public final java.lang.String getClientScriptAccessCode()
public final java.lang.String getHtmlFormScriptAccessCode()
public final boolean isSubForm()
public void setStyle(java.lang.String style)
public void setCssClass(java.lang.String cssClass)
public final boolean isEnabled()
public final void setEnabled(boolean enabled)
public final boolean isChainEnabled()
public final boolean isReadOnly()
public final void setReadOnly(boolean readOnly)
public final void setBindState(java.lang.String stateId)
stateId
- - the state which owns the binded form, otherwise the
current flow is used.public final void setBind(java.lang.String formName)
public final void setSkipFocus(boolean skipFocus)
public final java.lang.String getFormName()
public final IForm getBindedForm()
public net.infordata.ifw2.web.tags.IFormComponent getComponent(java.lang.String name)
public final net.infordata.ifw2.web.tags.IComponent getParentComponent()
public void setParentFromTagStack(boolean value)
value
- - if true getParent()
uses
RendererContext.getTagStack()
to access to the parent tag, which makes
possible to nest, for example, a FormTag
with a
DivTag
and a child TextTag
declared in an included jsp.public javax.servlet.jsp.tagext.Tag getParent()
getParent
in interface javax.servlet.jsp.tagext.Tag
getParent
in class javax.servlet.jsp.tagext.TagSupport
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException