public abstract class FormElement extends java.lang.Object implements Plugin
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FORM_VALUES_CARRIER
The submit servlet may decide to store a FormInfo with user-entered
form values in the Session.
|
static java.lang.String |
HANDLERPARAM_PREFIX
In order to make the form-to-handler parameter transfer easier,
we prefix all user-specified FORM element names with HANDLERPARAM_PREFIX
the HTML output.
|
static java.lang.String |
HIDE_SUCCESS
Show values.
|
static java.lang.String |
PARAM_ELEMENT
Plugin parameter, mandatory, indicates what form element to insert.
|
static java.lang.String |
PARAM_FORM
Plugin parameter, mandatory in open/output: name of the form.
|
static java.lang.String |
PARAM_FORMNAMEHIDDEN
HTTP parameter, inserted as hidden variable into the generated form.
|
static java.lang.String |
PARAM_HANDLER
Plugin parameter, mandatory in output element, indicates Plugin to use to handle form submitted data.
|
static java.lang.String |
PARAM_HIDEFORM
Experimental: hide the form if it was submitted successfully.
|
static java.lang.String |
PARAM_INPUTNAME
Plugin parameter, mandatory in input elements: name of an element.
|
static java.lang.String |
PARAM_POPULATE
If set to 'handler' in output element, the handler plugin is
called even on first invocation (no submit).
|
static java.lang.String |
PARAM_SUBMITHANDLER
Plugin parameter, optional, indicates servlet to post to.
|
static java.lang.String |
PARAM_VALUE
Plugin parameter, optional: default value for an input.
|
CORE_PLUGINS_RESOURCEBUNDLE| Constructor and Description |
|---|
FormElement() |
| Modifier and Type | Method and Description |
|---|---|
protected FormInfo |
getFormInfo(Context ctx)
Attempts to retrieve information on the currently handled form from the Context.
|
protected void |
storeFormInfo(Context ctx,
FormInfo info)
Utility method stores a FormInfo object into the Context.
|
public static final java.lang.String HANDLERPARAM_PREFIX
public static final java.lang.String FORM_VALUES_CARRIER
public static final java.lang.String HIDE_SUCCESS
public static final java.lang.String PARAM_SUBMITHANDLER
public static final java.lang.String PARAM_ELEMENT
public static final java.lang.String PARAM_HANDLER
public static final java.lang.String PARAM_FORM
public static final java.lang.String PARAM_INPUTNAME
public static final java.lang.String PARAM_VALUE
public static final java.lang.String PARAM_HIDEFORM
public static final java.lang.String PARAM_POPULATE
public static final java.lang.String PARAM_FORMNAMEHIDDEN
public FormElement()
protected void storeFormInfo(Context ctx, FormInfo info)
ctx - The Context to store it ininfo - The FormInfo to store.protected FormInfo getFormInfo(Context ctx)
ctx - The ContextCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.