Class StatelessForm<T>

    • Method Detail

      • getStatelessHint

        protected boolean getStatelessHint()
        Description copied from class: Component
        Returns whether the component can be stateless. Also the component behaviors must be stateless, otherwise the component will be treat as stateful. In order for page to be stateless (and not to be stored in session), all components (and component behaviors) must be stateless.
        Overrides:
        getStatelessHint in class Form<T>
        Returns:
        whether the component can be stateless
        See Also:
        Component.getStatelessHint()
      • onMethodMismatch

        protected Form.MethodMismatchResponse onMethodMismatch()
        Description copied from class: Form
        Called when a form has been submitted using a method differing from return value of Form.getMethod(). For example, someone can copy and paste the action url and invoke the form using a GET instead of the desired POST. This method allows the user to react to this situation.
        Overrides:
        onMethodMismatch in class Form<T>
        Returns:
        response that can either abort or continue the processing of the form
      • process

        public void process​(IFormSubmitter submittingComponent)
        Remove the page parameters for all form component otherwise they get appended to action URL Process the form. Though you can override this method to provide your own algorithm, it is not recommended to do so.

        See the class documentation for further details on the form processing

        Overrides:
        process in class Form<T>
        Parameters:
        submittingComponent - component responsible for submitting the form, or null if none (eg the form has been submitted via the enter key or javascript calling form.submit())
        See Also:
        for an easy way to process submitting component in the default manner