Interface ObjectFormHandler<T extends Persistent>

All Known Subinterfaces:
XHTMLFolderFormEventHandler<T>, XHTMLFormEventHandler<T>
All Known Implementing Classes:
ObjectFormAdapter, XHTMLFolderFormEventAdapter, XHTMLFormEventAdapter

public interface ObjectFormHandler<T extends Persistent>
This interface is used for writing callback classes for persistents.
  • Method Details

    • beforeShow

      default void beforeShow(T obj, FormContext ctx, HttpServletRequest req) throws Exception
      This method will be called before the page for the passed form is build. This allows particularly to set default values for form attributes which will be used when building the page.
      Parameters:
      obj - the object to show
      ctx - holds context information for the form
      req - the http request requesting the form's page
      Throws:
      Exception
    • onShow

      default void onShow(T obj, FormContext ctx, XHTMLPage p, HttpServletRequest req) throws Exception
      This method is called before the form is sent to the browser.
      Parameters:
      obj - the object to show
      ctx - holds context information for the form
      p - the xhtml page which will be sent to the browser
      req - the http request requesting the form's page
      Throws:
      Exception