com.ecyrd.jspwiki.forms
Class FormInput

java.lang.Object
  extended by com.ecyrd.jspwiki.forms.FormElement
      extended by com.ecyrd.jspwiki.forms.FormInput
All Implemented Interfaces:
WikiPlugin

public class FormInput
extends FormElement

Creates a simple input text field.


Field Summary
static String PARAM_SIZE
           
static String PARAM_TYPE
           
 
Fields inherited from class com.ecyrd.jspwiki.forms.FormElement
FORM_VALUES_CARRIER, HANDLERPARAM_PREFIX, HIDE_SUCCESS, PARAM_ELEMENT, PARAM_FORM, PARAM_FORMNAMEHIDDEN, PARAM_HANDLER, PARAM_HIDEFORM, PARAM_INPUTNAME, PARAM_POPULATE, PARAM_SUBMITHANDLER, PARAM_VALUE
 
Constructor Summary
FormInput()
           
 
Method Summary
 String execute(WikiContext ctx, Map params)
          Generates a dynamic form element on the WikiPage.
 
Methods inherited from class com.ecyrd.jspwiki.forms.FormElement
getFormInfo, storeFormInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_TYPE

public static final String PARAM_TYPE
See Also:
Constant Field Values

PARAM_SIZE

public static final String PARAM_SIZE
See Also:
Constant Field Values
Constructor Detail

FormInput

public FormInput()
Method Detail

execute

public String execute(WikiContext ctx,
                      Map params)
               throws PluginException
Generates a dynamic form element on the WikiPage.

Parameters:
ctx - The current WikiContext.
params - A Map which contains key-value pairs. Any parameter that the user has specified on the wiki page will contain String-String parameters, but it is possible that at some future date, JSPWiki will give you other things that are not Strings.
Returns:
HTML, ready to be included into the rendered page.
Throws:
PluginException - In case anything goes wrong.