Hello,

I can't seem to make widget type decorator work with CMS (details below). I tried changing decorator-section-include to decoratedContent but that didn't work either (no body displayed). I would appreciate any guidance. Thanks in advance.

Regards,
Vinay Agarwal

-----------Errors when I try displaying GZM_DEMO_HOME (the head and left bar paints fine) Error calling event: org.ofbiz.webapp.event.EventHandlerException: Problems processing event: org.ofbiz.base.util.GeneralRuntimeException: Error rendering content: org.ofbiz.base.util.GeneralException: Error rendering screen [component://site/webapp/site/screens/common/CommonScreens.xml#main-decorator]: java.lang.NullPointerException (null) (Error rendering screen [component://site/webapp/site/screens/common/CommonScreens.xml#main-decorator]: java.lang.NullPointerException (null)) (Error rendering content: org.ofbiz.base.util.GeneralException: Error rendering screen [component://grayzilla/webapp/grayzilla/screens/common/CommonScreens.xml#main-decorator]: java.lang.NullPointerException (null) (Error rendering screen [component://grayzilla/webapp/grayzilla/screens/common/CommonScreens.xml#main-decorator]: java.lang.NullPointerException (null)))

--------------Screen Widget decorator defined as
   <screen name="main-decorator">
       <section>
           <widgets>
                       <decorator-section-include name="body"/>
           </widgets>
       </section>
   </screen>

------------Content entities defined as

<Content contentId="GZM_PPOINT" contentTypeId="WEB_SITE_PUB_PT" contentName="site Publish Point" description=""/> <WebSiteContent webSiteId="siteMain" contentId="GZM_PPOINT" webSiteContentTypeId="PUBLISH_POINT" fromDate="2001-01-01 00:00:00"/>

   <!-- Main Decorator -->
<DataResource dataResourceId="GZM_MAIN_DEC" dataResourceTypeId="URL_RESOURCE" dataTemplateTypeId="SCREEN_COMBINED" objectInfo="component://site/webapp/site/screens/common/CommonScreens.xml#main-decorator"/> <Content contentId="GZM_DEC" contentTypeId="DECORATOR" contentName="site Main Decorator" dataResourceId="GZM_MAIN_DEC"/>
   <ContentPurpose contentId="GZM_DEC" contentPurposeTypeId="SECTION"/>

   <!-- Top content page, not -->
<DataResource dataResourceId="GZM_DEMO_HOME" dataResourceTypeId="URL_RESOURCE" dataTemplateTypeId="FTL" objectInfo="component://cmssite/webapp/cmssite/DemoHome.ftl"/> <Content contentId="GZM_DEMO_HOME" contentTypeId="DOCUMENT" decoratorContentId="GZM_DEC" contentName="Test Home Page" dataResourceId="GZM_DEMO_HOME"/> <ContentPurpose contentId="GZM_DEMO_HOME" contentPurposeTypeId="SECTION"/> <ContentAssoc contentId="GZM_PPOINT" contentIdTo="GZM_DEMO_HOME" contentAssocTypeId="SUB_CONTENT" fromDate="2001-01-01 00:00:00"/> <WebSiteContent webSiteId="siteMain" contentId="GZM_DEMO_HOME" webSiteContentTypeId="DEFAULT_PAGE" fromDate="2001-01-01 00:00:00"/>

_________________________________________________________________
More photos, more messages, more storage—get 2GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507

Reply via email to