org.makumba.forms.responder
Class FormResponder
java.lang.Object
org.makumba.forms.responder.Responder
org.makumba.forms.responder.FormResponder
- All Implemented Interfaces:
- Serializable
public class FormResponder
- extends Responder
- See Also:
- Serialized Form
Fields inherited from class org.makumba.forms.responder.Responder |
addField, afterHandler, basePointerName, basePointerType, clientSideValidation, controller, controllerClassname, database, defaultMatchModes, defaultMessageSearchForm, factory, FORM_RESULTS, formId, formName, formOrder, formSessionName, groupCounter, handler, identity, message, multipleSubmitErrorMsg, newType, op, operation, originatingPageName, reloadFormOnError, responderName, resultAttribute, resultLabel, searchType, storedParentSuffix, storedSuffix, suffixSeparator, triggerEvent |
Method Summary |
String |
format(String fname,
FieldDefinition ftype,
Object fval,
Hashtable<String,Object> formatParams,
String extraFormatting,
Object formIdentifier)
Format a field using the editor, and grow the editor as needed |
String |
getAction()
|
Dictionary<String,Object> |
getHttpData(HttpServletRequest req,
String suffix)
reads the data submitted to the controller by http, also sets the values in the request so they can be retrieved
as attributes |
HashMap<String,String> |
getLazyEvaluatedInputs()
|
String |
getResponderValue()
|
ArrayList<InvalidValueException> |
getUnassignedExceptions(CompositeValidationException e,
ArrayList<InvalidValueException> unassignedExceptions,
String suffix)
|
protected void |
postDeserializaton()
|
String |
responderKey()
a key that should identify this responder among all |
void |
setAction(String action)
|
void |
setExtraFormatting(StringBuffer extraFormatting)
|
void |
setLazyEvaluatedInputs(HashMap<String,String> unresolvedInputValues)
|
void |
setMethod(String method)
|
void |
setMultipart(boolean multipart)
|
void |
writeClientsideValidation(StringBuffer sb)
|
void |
writeFormPostamble(StringBuffer sb,
String basePointer,
HttpServletRequest request)
|
void |
writeFormPreamble(StringBuffer sb,
String basePointer,
HttpServletRequest request)
|
(package private) void |
writeInput(StringBuffer sb,
String name,
String value,
String suffix)
|
Methods inherited from class org.makumba.forms.responder.Responder |
addMultiFieldSearchMapping, errorMessage, errorMessageFormatter, getAddField, getAfterHandler, getBasePointerType, getController, getDatabase, getDefaultMatchMode, getFactory, getFormName, getFormOrder, getHandler, getHttpBasePointer, getMultiFieldSearchCriterion, getNewType, getOriginatingPageName, getPrototype, getReloadFormOnError, getResultLabel, getSearchType, getShowFormAnnotated, getSuffix, getTriggerEvent, saveResponderToDisc, setAddField, setAfterHandler, setBasePointerType, setClientSideValidation, setDefaultMatchMode, setFactory, setFormId, setFormName, setHandler, setHttpRequest, setMessage, setMultipleSubmitErrorMsg, setNewType, setOperation, setOriginatingPageName, setParentResponder, setReloadFormOnError, setResponderOrder, setResultAttribute, setResultLabel, setSearchType, setShowFormAnnotated, setTriggerEvent, successFulMessageFormatter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
editor
RecordEditor editor
indexes
Hashtable<String,Integer> indexes
dd
DataDefinition dd
max
int max
fieldParameters
Hashtable<String,Dictionary<String,Object>> fieldParameters
fieldNames
Hashtable<String,String> fieldNames
action
protected String action
methodDefault
protected boolean methodDefault
method
protected String method
multipart
protected boolean multipart
extraFormatting
StringBuffer extraFormatting
FormResponder
public FormResponder()
getHttpData
public Dictionary<String,Object> getHttpData(HttpServletRequest req,
String suffix)
- reads the data submitted to the controller by http, also sets the values in the request so they can be retrieved
as attributes
- Specified by:
getHttpData
in class Responder
- Parameters:
req
- the request corresponding to the current pagesuffix
- the responder / form suffix
- Returns:
- a Dictionary holding the data read by the logic
getUnassignedExceptions
public ArrayList<InvalidValueException> getUnassignedExceptions(CompositeValidationException e,
ArrayList<InvalidValueException> unassignedExceptions,
String suffix)
- Specified by:
getUnassignedExceptions
in class Responder
format
public String format(String fname,
FieldDefinition ftype,
Object fval,
Hashtable<String,Object> formatParams,
String extraFormatting,
Object formIdentifier)
- Format a field using the editor, and grow the editor as needed
responderKey
public String responderKey()
- Description copied from class:
Responder
- a key that should identify this responder among all
- Overrides:
responderKey
in class Responder
setAction
public void setAction(String action)
getAction
public String getAction()
setMultipart
public void setMultipart(boolean multipart)
setMethod
public void setMethod(String method)
setExtraFormatting
public void setExtraFormatting(StringBuffer extraFormatting)
writeFormPreamble
public void writeFormPreamble(StringBuffer sb,
String basePointer,
HttpServletRequest request)
writeFormPostamble
public void writeFormPostamble(StringBuffer sb,
String basePointer,
HttpServletRequest request)
getResponderValue
public String getResponderValue()
writeInput
void writeInput(StringBuffer sb,
String name,
String value,
String suffix)
postDeserializaton
protected void postDeserializaton()
- Specified by:
postDeserializaton
in class Responder
writeClientsideValidation
public void writeClientsideValidation(StringBuffer sb)
setLazyEvaluatedInputs
public void setLazyEvaluatedInputs(HashMap<String,String> unresolvedInputValues)
getLazyEvaluatedInputs
public HashMap<String,String> getLazyEvaluatedInputs()