Class PluginFormPreRenderRetVal

    • Constructor Detail

      • PluginFormPreRenderRetVal

        public PluginFormPreRenderRetVal​(Map<String,​List<String[]>> formValuesMap,
                                         boolean continueProcessing)
      • PluginFormPreRenderRetVal

        public PluginFormPreRenderRetVal​(SerializableJSONObject metaDataJSON,
                                         boolean continueProcessing)
    • Method Detail

      • getContinueProcessing

        public boolean getContinueProcessing()
        Specified by:
        getContinueProcessing in interface IPluginFormPreRenderRetVal
        Returns:
        true 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.
      • getFormValues

        public Map<String,​List<String[]>> getFormValues()
        Description copied from interface: IPluginFormPreRenderRetVal
        For each key in this map, the values for that key are written to the corresponding form field for that key (its name). When a form field already contains a value, it is overwritten.

        Also, 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!

        Specified by:
        getFormValues in interface IPluginFormPreRenderRetVal
        Returns:
        Map with the form field values to be set.
      • setSessionAttributes

        public void setSessionAttributes​(Map<String,​Serializable> sessionAttributes)