Package org.zkoss.web.init
Class LabelLocatorHook
- java.lang.Object
-
- org.zkoss.web.init.LabelLocatorHook
-
- All Implemented Interfaces:
java.util.EventListener,javax.servlet.ServletContextListener
public class LabelLocatorHook extends java.lang.Object implements javax.servlet.ServletContextListenerDeprecated.As of release 6.0.0, we don't support the loading of zk-label.properties without installing ZK. Used to hook a label locator to locate resources from the servlet context.Note: you don't need to specify this in web.xml if you use ZK because org.zkoss.zk.ui.DHtmlLayoutServlet will register the label locator automatically.
If you don't use ZK, you could declare
<listener> <description>Load zk-label.properties from this Web app</description> <display-name>Locating zk-label.properties</display-name> <listener-class>org.zkoss.web.init.LabelLocatorHook</listener-class> </listener>- Author:
- tomyeh
-
-
Constructor Summary
Constructors Constructor Description LabelLocatorHook()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcontextDestroyed(javax.servlet.ServletContextEvent sce)Deprecated.voidcontextInitialized(javax.servlet.ServletContextEvent sce)Deprecated.
-
-
-
Method Detail
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
Deprecated.- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
Deprecated.- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
-