[opencms-dev] Setting the correct site inside event listener

Marc Johnen opencms at johnen.biz
Mon Sep 7 15:04:41 CEST 2009


Actually I didn't think as far as you, but just gave a quick answer :-)
Thanks for your comment, I will keep that in mind.
Greetings
Marc


a.westermann at alkacon.com wrote:
> 
> Hi Marc & Paul-Inge,
> 
> also try to use your own CmsObject in your event listener instead of 
> modifying the one given to your module action class directly. 
> Implementation of I_CmsEventListener and extension of A_CmsModuleAction  :
> 
>    /**
>       * @see 
> org.opencms.module.A_CmsModuleAction#initialize(org.opencms.file.CmsObject, 
> org.opencms.configuration.CmsConfigurationManager, 
> org.opencms.module.CmsModule)
>       */
>      public void initialize(CmsObject adminCms, CmsConfigurationManager 
> configurationManager, CmsModule module) {
> m_myCms =  OpenCms.initCmsObject(cms)
> 
> ...
> }
> 
> 
> Hope my guess about what you are trying to do was right. If so and you 
> weren't already on this track, read more here:
> 
> http://opencms-wiki.org/Example_Actionclass
> 
> 
> Kind Regards,
> Achim.
> 
> -------------------
> Achim Westermann
> 
> Alkacon Software GmbH  - The OpenCms Experts
> http://www.alkacon.com - http://www.opencms.org
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> 

-- 
View this message in context: http://www.nabble.com/Setting-the-correct-site-inside-event-listener-tp25293322p25330218.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list