You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2018/09/05 16:31:59 UTC

svn commit: r1840142 - in /ofbiz/site/dtds: ofbiz-component.xsd site-conf.xsd widget-form.xsd

Author: jleroux
Date: Wed Sep  5 16:31:59 2018
New Revision: 1840142

URL: http://svn.apache.org/viewvc?rev=1840142&view=rev
Log:
Update DTDs

Modified:
    ofbiz/site/dtds/ofbiz-component.xsd
    ofbiz/site/dtds/site-conf.xsd
    ofbiz/site/dtds/widget-form.xsd

Modified: ofbiz/site/dtds/ofbiz-component.xsd
URL: http://svn.apache.org/viewvc/ofbiz/site/dtds/ofbiz-component.xsd?rev=1840142&r1=1840141&r2=1840142&view=diff
==============================================================================
--- ofbiz/site/dtds/ofbiz-component.xsd (original)
+++ ofbiz/site/dtds/ofbiz-component.xsd Wed Sep  5 16:31:59 2018
@@ -43,21 +43,28 @@ under the License.
             <xs:attributeGroup ref="attlist.depends-on">
                 <xs:annotation>
                     <xs:documentation>
-                        This is yet unimplemented. It's not a trivial implementation because at the moment components are loaded
-                        in the order they are found (i.e. alphabetic or creation date).
-                        While this feature would require them all to be located first and then reordered and loaded.
-                        So, for now, simply follow below guidelines.
+                        Alter the way components are loaded. 
                         
+                        By default components are loaded in the order they are found (i.e. alphabetic or creation date).
                         For the plugins, all components will be loaded after the OFBiz components, including, in this order, those in:
-                        framework
-                        themes
-                        applications
+                            framework
+                            themes
+                            applications
+                        The plugins Auto-Loading feature also loads all components in the order they are found (i.e. alphabetic or creation date).
+                         
+                        Using depends-on allows to create a series of dependencies for component loading, before loading a particular component.
+                        For instance we can define dependency for a component like component ebaystore is dependent on component ebay 
+                        (even multiple dependencies for a single component is supported). 
                         
-                        The plugins Auto-Loading feature loads all components in the order they are found (i.e. alphabetic or creation date).
+                        If any anomaly is found loading of components will stop.
                         
-                        If you need a specific loading order of these components then you need to disable the Auto-Loading feature 
-                        by creating a component-load.xml file in the plugins  directory and use the load-component tag to load 
-                        your components in the order you want (just use the component-load.xml file in the application folder as a template).
+                        We can declare it in this fashion in ofbiz-component.xml file (beware ebaystore is disabled by default)
+                        <![CDATA[
+                        <ofbiz-component name="ebaystore" enabled="true"
+                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd">
+                        <depends-on component-name="ebay"/>
+                        ]]>
                     </xs:documentation>
                 </xs:annotation>
             </xs:attributeGroup>

Modified: ofbiz/site/dtds/site-conf.xsd
URL: http://svn.apache.org/viewvc/ofbiz/site/dtds/site-conf.xsd?rev=1840142&r1=1840141&r2=1840142&view=diff
==============================================================================
--- ofbiz/site/dtds/site-conf.xsd (original)
+++ ofbiz/site/dtds/site-conf.xsd Wed Sep  5 16:31:59 2018
@@ -216,6 +216,24 @@ under the License.
                 </xs:documentation>
             </xs:annotation>
         </xs:attribute>
+        <xs:attribute name="method" use="optional" default="all">
+            <xs:annotation>
+                <xs:documentation>
+                    The HTTP of this request. This will be the HTTP method used to access the request.
+                </xs:documentation>
+            </xs:annotation>
+            <xs:simpleType>
+                <xs:restriction base="xs:token">
+                    <xs:enumeration value="get"/>
+                    <xs:enumeration value="post"/>
+                    <xs:enumeration value="put"/>
+                    <xs:enumeration value="delete"/>
+                    <xs:enumeration value="patch"/>
+                    <xs:enumeration value="options"/>
+                    <xs:enumeration value="all"/>
+                </xs:restriction>
+            </xs:simpleType>
+        </xs:attribute>
         <xs:attribute type="xs:boolean" name="edit" default="true">
             <xs:annotation>
                 <xs:documentation>

Modified: ofbiz/site/dtds/widget-form.xsd
URL: http://svn.apache.org/viewvc/ofbiz/site/dtds/widget-form.xsd?rev=1840142&r1=1840141&r2=1840142&view=diff
==============================================================================
--- ofbiz/site/dtds/widget-form.xsd (original)
+++ ofbiz/site/dtds/widget-form.xsd Wed Sep  5 16:31:59 2018
@@ -86,7 +86,7 @@ under the License.
             <xs:attribute name="style" type="xs:string" />
             <xs:attribute name="focus-field-name" type="xs:string" />
             <xs:attribute name="title" type="xs:string" />
-            <xs:attribute name="empty-form-data-message" type="xs:string" />
+            <xs:attribute name="empty-form-data-message" type="xs:string" default="${uiLabelMap.CommonNoRecordFound}"/>
             <xs:attribute name="tooltip" type="xs:string" />
             <xs:attribute name="list-name" type="xs:string">
                 <xs:annotation>
@@ -328,7 +328,7 @@ under the License.
             <xs:attribute name="style" type="xs:string" />
             <xs:attribute name="focus-field-name" type="xs:string" />
             <xs:attribute name="title" type="xs:string" />
-            <xs:attribute name="empty-form-data-message" type="xs:string" />
+            <xs:attribute name="empty-form-data-message" type="xs:string" default="${uiLabelMap.CommonNoRecordFound}"/>
             <xs:attribute name="tooltip" type="xs:string" />
             <xs:attribute name="list-name" type="xs:string">
                 <xs:annotation>