Class LabelLocatorHook

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.ServletContextListener

    public class LabelLocatorHook
    extends java.lang.Object
    implements javax.servlet.ServletContextListener
    Deprecated.
    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.
       
    • Constructor Detail

      • LabelLocatorHook

        public LabelLocatorHook()
        Deprecated.
    • Method Detail

      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent sce)
        Deprecated.
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener
      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent sce)
        Deprecated.
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener