ofbiz错误解析之三

在编辑菜单的时候,因为是自己新建的应用,所以需要将菜单的名称和位置加入到CommonScreens.xml中,

<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd ">
    <screen name="main-decorator">
        <section>
            <actions>
                <!-- base/top/specific map first, then more common map added for shared labels -->
                <property-map resource="LearningUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="layoutSettings.companyName" from-field="uiLabelMap.LearningCompanyName"
                 global="true"/>
                <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.LearningCompanySubtitle" global="true"/>
                <set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.jpg" global="true"/>
                <set field="activeApp" value="learning" global="true"/>
                <set field="appheaderTemplate" value="component://learning/webapp/learning/includes/appheader.ftl" global="true"/>
                <set field="applicationMenuName" value="TopMenu" global="true"/>
                <set field="applicationMenuLocation" value="component://learning/widget/learning/LearningMenus.xml" global="true"/>
            </actions>
            <widgets>
                <include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml "/>
            </widgets>
        </section>
    </screen>
   
    <screen name="login">
  <section>
   <widgets>
    <decorator-screen name="main-decorator"
     location="${parameters.mainDecoratorLocation}">
     <decorator-section name="body">
      <platform-specific>
       <html>
        <html-template location="component://common/webcommon/login.ftl" />
       </html>
      </platform-specific>
     </decorator-section>
    </decorator-screen>
   </widgets>
  </section>
 </screen>
</screens>
就是上面绿色高亮部分,不要忘记哦~~~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值