You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Adrian Crum <ad...@hlmksw.com> on 2007/02/23 22:53:14 UTC

Another GlobalDecorator Suggestion

All of this code:

<section>
   <condition>
     <if-empty field-name="applicationMenuName"/>
   </condition>
   <widgets>
     <platform-specific><html><html-template 
location="${appheaderTemplate}"/></html></platform-specific>
   </widgets>
   <fail-widgets>
     <label style="apptitle">${applicationTitle}</label>
     <include-menu name="${applicationMenuName}" 
location="${applicationMenuLocation}"/>
   </fail-widgets>
</section>

can be replaced with one line:

<decorator-section-include name="app-header"/>

Instead of trying to get the GlobalDecorator to figure out what the component is 
sending it, just have the component's decorator deal with its own app header issues.