ofbiz 目录总结

 

ofbiz的目录,特别多,所以经过两个小例子,总结下如何找到相应的目录。

 

表结构(数据结构)在:

       Applications\*\entitydef\*.xml

             更改表结构(数据结构):

            Applications\party\entitydef\entitymodel.xml

 

一些应用(*)的ftl文件在:                         

         Applications\*\webapp\*mgr\*\*.ftl

如:

    更改界面:

         Applications\party\webapp\partymgr\party\*.ftl

 

更改流程:\webapp\*\WEB-INF\controller.xml

如:

       Applications\party\webapp\partymgr\WEB-INF\controller.xml

         要扩展controller.xml 新建视力映射文件(*.xml

         如:

<?xml version="1.0" encoding="UTF-8"?>

<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd">

    <view-map name="PostalAddressAdvisory" type="screen" page="component://party/widget/partymgr/OurPartyScreens.xml#PostalAddressAdvisory" />

</site-conf>

controller.xml 要把*.xml包含进来

<include location="component://party/webapp/partymgr/WEB-INF/extended.xml"/>

 

 

创建widget窗口    

        Applications\*\widget\*mgr\OurPartyScreens.xml

      如:   Applications\party\widget\partymgr\OurPartyScreens.xml

如下:

<?xml version="1.0" encoding="UTF-8"?>

<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd">

    <screen name="PostalAddressAdvisory">

       <section>

           <actions>

              <set field="titleProperty" value="PageTitleEditContactMech" />

              <set field="headerItem" value="find" />

              <set field="tabButtonItem" value="editcontactmech" />

              <set field="labelTitleProperty" value="PageTitleEditContactMech" />

              <script location="component://party/webapp/partymgr/WEB-INF/actions/party/editcontactmech.groovy" />

           </actions>

           <widgets>

              <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">

                  <decorator-section name="body">

                     <section>

                         <widgets>

                            <platform-specific>

                                <html>

                                   <html-template location="component://party/webapp/partymgr/party/postaladdressadvisory.ftl" />

                                </html>

                            </platform-specific>

                         </widgets>

                     </section>

                  </decorator-section>

              </decorator-screen>

           </widgets>

       </section>

    </screen>

</screens>

你可能感兴趣的:(ofbiz)