Dashboard > WebWork > ... > FAQ > How can I integrate WebWork IoC in to an object that is not an action
  WebWork Log In View a printable version of the current page.  
  How can I integrate WebWork IoC in to an object that is not an action
Added by Onyeje Bose, last edited by Onyeje Bose on Nov 05, 2005
Labels: 
(None)

Obtain the ComponentManager from the request: ComponentManager cm = (ComponentManager) ServletActionContext.getRequest().getAttribute("DefaultComponentManager");
then you need to initialize it using: cm.initializeObject(Object)

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators