|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.ScriptBase org.springframework.extensions.webscripts.ScriptFormData
public final class ScriptFormData
Represents form data that was posted back to the current rendering context. Form data can arrive via a multipart form post or via a urlencoded form post. This object disambiguates between the two and provides a common interface for working with form-posted variables. It takes into account namespacing of form variables.
Nested Class Summary | |
---|---|
class |
ScriptFormData.FormField
|
Field Summary |
---|
Fields inherited from class org.springframework.extensions.webscripts.ScriptBase |
---|
context, properties |
Constructor Summary | |
---|---|
ScriptFormData(RenderContext context)
Instantiates a new script form. |
Method Summary | |
---|---|
protected ScriptableMap |
buildProperties()
|
ScriptFormData.FormField |
getField(String id)
Gets an element form field. |
String[] |
getFieldIds()
Gets the ids of all element form fields. |
Object[] |
getFields()
Gets the fields. |
void |
load(String prefix)
Populates the object with form bindings for the given namespace |
protected void |
processMapIntoFields(Map map,
String prefix)
Converts a map of name/value pairs into fields if they match the specified prefix |
Methods inherited from class org.springframework.extensions.webscripts.ScriptBase |
---|
getConfig, getModel, getObject, getProperties, getRequestContext, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScriptFormData(RenderContext context)
rendererContext
- the renderer contextMethod Detail |
---|
protected ScriptableMap buildProperties()
buildProperties
in class ScriptBase
public ScriptFormData.FormField getField(String id)
id
- the id
public Object[] getFields()
public String[] getFieldIds()
public void load(String prefix)
protected void processMapIntoFields(Map map, String prefix)
map
- prefix
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |