Package com.groiss.storegui
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 Summary
Modifier and TypeMethodDescriptiondefault void
beforeShow
(T obj, FormContext ctx, HttpServletRequest req) This method will be called before the page for the passed form is build.default void
onShow
(T obj, FormContext ctx, XHTMLPage p, HttpServletRequest req) This method is called before the form is sent to the browser.
-
Method Details
-
beforeShow
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 showctx
- holds context information for the formreq
- the http request requesting the form's page- Throws:
Exception
-
onShow
This method is called before the form is sent to the browser.- Parameters:
obj
- the object to showctx
- holds context information for the formp
- the xhtml page which will be sent to the browserreq
- the http request requesting the form's page- Throws:
Exception
-