public class Form extends TagSupport
<appNG:formData>
and a <appNG:formConfirmation>
.
Usage:
<appNG:form> <appNG:formData mode="not_submitted"> <form action="" method="post" enctype="multipart/form-data" > <!-- <appNG:formElement>s go here --> <input type="submit" /> </form> </appNG:formData> <appNG:formConfirmation application="appng-webutils" method="debugProvider" mode="submitted"> <appNG:param name="foo">bar</appNG:param> <appNG:param name="jin">fizz</appNG:param> </appNG:formConfirmation> </appNG:form>As you can see, the
<appNG:formConfirmation>
can be parameterized using the syntax <appNG:param name="name">value</appNG:param>
. For the value, you can access request parameters using the syntax #[param]
,
for example <appNG:param name="receiver">#[email]</appNG:param>
.FormElement
,
FormGroup
,
FormConfirmation
,
Serialized Formid, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
Form() |
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody() |
int |
doEndTag() |
int |
doStartTag() |
String |
getName() |
Form |
getWrappedForm() |
boolean |
hasName() |
void |
setFormConfirmation(FormConfirmation formConfirmation) |
void |
setFormData(FormData formData) |
void |
setName(String name) |
void |
setRestoreRequestData(Boolean restoreRequestData) |
findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
public int doAfterBody() throws JspException
doAfterBody
in interface IterationTag
doAfterBody
in class TagSupport
JspException
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
public Form getWrappedForm()
public void setFormConfirmation(FormConfirmation formConfirmation)
public void setFormData(FormData formData)
public void setRestoreRequestData(Boolean restoreRequestData)
public String getName()
public void setName(String name)
public boolean hasName()
Copyright © 2011–2017 aiticon GmbH. All rights reserved.