/** * This returns the client ComponentManager if one is configured with its default name. If set on the context with a different * attribute name, you need to fetch it yourself with a different attr name * @return the client ComponentManager or <code>null</code> if none configured */ public ComponentManager getDefaultClientComponentManager(){ ComponentManager clientComponentManager = HstFilter.getClientComponentManager(getServletContext()); if(clientComponentManager == null) { log.warn("Cannot get a client component manager from servlet context for attr name '{}'", HstFilter.CLIENT_COMPONENT_MANANGER_DEFAULT_CONTEXT_ATTRIBUTE_NAME); } return clientComponentManager; }
componentManager = HstFilter.getClientComponentManager(getServletContext());