public class PluginFormPreRenderRetVal extends Object implements IPluginFormPreRenderRetVal
| Constructor and Description |
|---|
PluginFormPreRenderRetVal(Map<String,List<String[]>> formValuesMap,
boolean continueProcessing) |
PluginFormPreRenderRetVal(SerializableJSONObject metaDataJSON,
boolean continueProcessing) |
PluginFormPreRenderRetVal(SerializableJSONObject metaDataJSON,
Map<String,List<String[]>> formValuesMap,
boolean continueProcessing) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getContinueProcessing() |
Map<String,List<String[]>> |
getFormValues()
For each key in this map, the values for that key are written to the corresponding form field for that key (its
name).
|
SerializableJSONObject |
getMetaDataJSON()
The global JavaScript object
XFC_METADATA.pluginResults["pluginName"] contains the data of all form pre
render plugins as returned by this method. |
Map<String,Serializable> |
getSessionAttributes()
A map of key-value pairs with session attributes that are written to the
HttpSession. |
void |
setSessionAttributes(Map<String,Serializable> sessionAttributes) |
public PluginFormPreRenderRetVal(SerializableJSONObject metaDataJSON, Map<String,List<String[]>> formValuesMap, boolean continueProcessing)
public PluginFormPreRenderRetVal(Map<String,List<String[]>> formValuesMap, boolean continueProcessing)
public PluginFormPreRenderRetVal(SerializableJSONObject metaDataJSON, boolean continueProcessing)
public SerializableJSONObject getMetaDataJSON()
IPluginFormPreRenderRetValXFC_METADATA.pluginResults["pluginName"] contains the data of all form pre
render plugins as returned by this method.getMetaDataJSON in interface IPluginFormPreRenderRetValXFC_METADATA.public boolean getContinueProcessing()
getContinueProcessing in interface IPluginFormPreRenderRetValtrue to continue as usual, or false to prevent the form from being sent to the user. In the
latter case, the user receives a general error page that the form could not be found.public Map<String,List<String[]>> getFormValues()
IPluginFormPreRenderRetValAlso, please note that is is possible to pre-fill form fields with values from URL parameters. The values in this map take precedence over values from URL parameters. also replace values from URL parameters!
getFormValues in interface IPluginFormPreRenderRetValMap with the form field values to be set.public Map<String,Serializable> getSessionAttributes()
IPluginFormPreRenderRetValHttpSession. When the session
already contains a value for a parameter, it is overwritten.getSessionAttributes in interface IPluginFormPreRenderRetValMap with session attributes to set on the HttpSession.public void setSessionAttributes(Map<String,Serializable> sessionAttributes)
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.