Package org.zkoss.zk.ui.util
Interface DesktopInit
public interface DesktopInit
Used to initialize a desktop when it is created.
How this interface is used.
- First, you specify a class that implements this interface in WEB-INF/zk.xml as a listener.
- Then, even time ZK loader creates a new desktop, an instance of
the specified class is instantiated and
init(org.zkoss.zk.ui.Desktop, java.lang.Object)is called.
- Author:
- tomyeh
-
Method Summary
-
Method Details
-
init
Called when a desktop is created and initialized.Note: you can access the execution by calling
Desktop.getExecution()orExecutions.getCurrent().- Parameters:
desktop- the desktop being created and initializedrequest- the request caused the desktop being created. If HTTP and servlet, it is jakarta.servlet.http.HttpServletRequest. If portlet, it is javax.portlet.RenderRequest.- Throws:
Exception- Since:
- 3.0.1
-