| java.lang.Object com.ecyrd.jspwiki.forms.FormElement
All known Subclasses: com.ecyrd.jspwiki.forms.FormTextarea, com.ecyrd.jspwiki.forms.FormClose, com.ecyrd.jspwiki.forms.FormSelect, com.ecyrd.jspwiki.forms.FormInput, com.ecyrd.jspwiki.forms.FormOutput, com.ecyrd.jspwiki.forms.FormOpen,
Field Summary | |
final public static String | FORM_VALUES_CARRIER The submit servlet may decide to store a FormInfo with user-entered
form values in the Session. | final public 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. | final public static String | HIDE_SUCCESS | final public static String | PARAM_ELEMENT Plugin parameter, mandatory, indicates what form element to insert. | final public static String | PARAM_FORM Plugin parameter, mandatory in open/output: name of the form. | final public static String | PARAM_FORMNAMEHIDDEN HTTP parameter, inserted as hidden variable into the generated form. | final public static String | PARAM_HANDLER Plugin parameter, mandatory in output element, indicates
WikiPlugin to use to handle form submitted data. | final public static String | PARAM_HIDEFORM Experimental: hide the form if it was submitted successfully. | final public static String | PARAM_INPUTNAME Plugin parameter, mandatory in input elements: name of an element. | final public static String | PARAM_POPULATE If set to 'handler' in output element, the handler plugin is
called even on first invocation (no submit). | final public static String | PARAM_SUBMITHANDLER Plugin parameter, optional, indicates servlet to post to. | final public static String | PARAM_VALUE Plugin parameter, optional: default value for an input. |
FORM_VALUES_CARRIER | final public static String FORM_VALUES_CARRIER(Code) | | The submit servlet may decide to store a FormInfo with user-entered
form values in the Session. It should use this name, and this class
checks for it to pre-fill fields from a previous form submit.
|
HANDLERPARAM_PREFIX | final public static String HANDLERPARAM_PREFIX(Code) | | 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. This lets us differentiate user-defined FormHandler
parameters from Form parameters.
The submit handler must then use MapUtil.requestToMap() to
strip them before executing the handler itself.
|
PARAM_ELEMENT | final public static String PARAM_ELEMENT(Code) | | Plugin parameter, mandatory, indicates what form element to insert.
|
PARAM_FORM | final public static String PARAM_FORM(Code) | | Plugin parameter, mandatory in open/output: name of the form.
|
PARAM_FORMNAMEHIDDEN | final public static String PARAM_FORMNAMEHIDDEN(Code) | | HTTP parameter, inserted as hidden variable into the generated form.
|
PARAM_HANDLER | final public static String PARAM_HANDLER(Code) | | Plugin parameter, mandatory in output element, indicates
WikiPlugin to use to handle form submitted data.
|
PARAM_HIDEFORM | final public static String PARAM_HIDEFORM(Code) | | Experimental: hide the form if it was submitted successfully.
|
PARAM_INPUTNAME | final public static String PARAM_INPUTNAME(Code) | | Plugin parameter, mandatory in input elements: name of an element.
|
PARAM_POPULATE | final public static String PARAM_POPULATE(Code) | | If set to 'handler' in output element, the handler plugin is
called even on first invocation (no submit). The plugin can
then place values into its parameter map, and these are seen by
subsequent Form elements. (Store a value in the plugin with the
same key as an input element, and the value will be visible in
the initial form.)
|
PARAM_SUBMITHANDLER | final public static String PARAM_SUBMITHANDLER(Code) | | Plugin parameter, optional, indicates servlet to post to.
|
PARAM_VALUE | final public static String PARAM_VALUE(Code) | | Plugin parameter, optional: default value for an input.
|
getFormInfo | protected FormInfo getFormInfo(WikiContext ctx)(Code) | | Attempts to retrieve information on the currently handled
form from the WikiContext.
|
storeFormInfo | protected void storeFormInfo(WikiContext ctx, FormInfo info)(Code) | | Utility method stores a FormInfo object into the WikiContext.
|
|
|