zoukankan      html  css  js  c++  java
  • 客户化 Summary 页的 Properties

    客户化MyClass的Summary页的Properties:

       创建一个Widge Form:
       <edit parent="/PageInfo/WidgetDefinitions">
         <add>
           <node name="comMyClassSummaryModelForm">
            <map>
              <entry key="widget_type" value="MODeLForm" />
              <entry key="content" value="comMyClassSummaryModelFormContent" />
              <entry key="bean_name" value="sdrcMODeLFormPresentationBean" />
              <entry key="parameters" value="ItemHandleParam" />
            </map>
          </node>
         </add>
       </edit>

       为该Widge Form 创建 Content:
       <edit parent="/PageInfo/ContentSpecs">
         <add>
           <node name="comMyClassSummaryModelFormContent">
             <node name="comProperty1" />
             <node name="comProperty2" />
             <node name="comProperty3" />
             <node name="comProperty4" />
           </node>
         </add>
       </edit>

       comProperty1, 2, 3, 4 必须定义为如下形态:
       <edit parent="/PageInfo/PageElements">
         <add>
           <node name="comProperty1">
             <map>
               <entry key="widget_type" value="Column" />
               <entry key="column_name" value="ModelPropertyName" />
               <entry key="label" value="" />
              </map>
            </node>
          </add>
        </edit>

       最后,将该Widget Form 添加到系统对象中:
       <edit parent="/PageInfo/ContentSpecs/SummaryTabWidgetList">
         <add>
           <node name="comMyClassSummaryModelForm" applies-to="is_MyClass" />
         </add>
       </edit>
      
       重新发布, 测试。

  • 相关阅读:
    CodeForces 757C Felicity is Coming!(排列组合)
    Ural 1519 Formula 1( 插头dp )
    FZU 2187 回家种地 ( 扫描线 + 离散 求矩阵单次覆盖面积 )
    HDU 1255 覆盖的面积 ( 扫描线 + 离散 求矩阵大于k次面积并 )
    ZOJ 3841 Cards
    HDU 4012 Paint on a Wall(状压+bfs)
    Topcoder SRM653div2
    2015 GDUT校赛
    Topcoder SRM652div2
    CodeChef A String Game(SG)
  • 原文地址:https://www.cnblogs.com/hcfalan/p/668003.html
Copyright © 2011-2022 走看看