|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.forms.FormElement
public abstract class FormElement
Field Summary | |
---|---|
static String |
FORM_VALUES_CARRIER
The submit servlet may decide to store a FormInfo with user-entered form values in the Session. |
static 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 String |
HIDE_SUCCESS
Show values. |
static String |
PARAM_ELEMENT
Plugin parameter, mandatory, indicates what form element to insert. |
static String |
PARAM_FORM
Plugin parameter, mandatory in open/output: name of the form. |
static String |
PARAM_FORMNAMEHIDDEN
HTTP parameter, inserted as hidden variable into the generated form. |
static String |
PARAM_HANDLER
Plugin parameter, mandatory in output element, indicates WikiPlugin to use to handle form submitted data. |
static String |
PARAM_HIDEFORM
Experimental: hide the form if it was submitted successfully. |
static String |
PARAM_INPUTNAME
Plugin parameter, mandatory in input elements: name of an element. |
static String |
PARAM_POPULATE
If set to 'handler' in output element, the handler plugin is called even on first invocation (no submit). |
static String |
PARAM_SUBMITHANDLER
Plugin parameter, optional, indicates servlet to post to. |
static String |
PARAM_VALUE
Plugin parameter, optional: default value for an input. |
Fields inherited from interface org.apache.wiki.api.plugin.WikiPlugin |
---|
CORE_PLUGINS_RESOURCEBUNDLE |
Constructor Summary | |
---|---|
FormElement()
|
Method Summary | |
---|---|
protected FormInfo |
getFormInfo(WikiContext ctx)
Attempts to retrieve information on the currently handled form from the WikiContext. |
protected void |
storeFormInfo(WikiContext ctx,
FormInfo info)
Utility method stores a FormInfo object into the WikiContext. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.wiki.api.plugin.WikiPlugin |
---|
execute |
Field Detail |
---|
public static final String HANDLERPARAM_PREFIX
public static final String FORM_VALUES_CARRIER
public static final String HIDE_SUCCESS
public static final String PARAM_SUBMITHANDLER
public static final String PARAM_ELEMENT
public static final String PARAM_HANDLER
public static final String PARAM_FORM
public static final String PARAM_INPUTNAME
public static final String PARAM_VALUE
public static final String PARAM_HIDEFORM
public static final String PARAM_POPULATE
public static final String PARAM_FORMNAMEHIDDEN
Constructor Detail |
---|
public FormElement()
Method Detail |
---|
protected void storeFormInfo(WikiContext ctx, FormInfo info)
ctx
- The Context to store it ininfo
- The FormInfo to store.protected FormInfo getFormInfo(WikiContext ctx)
ctx
- The Context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |