svn commit: r612380 - in /ofbiz/trunk/applications/content: webapp/content/datasetup/DataSetupForms.xml widget/datasetup/DataResourceSetupScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r612380 - in /ofbiz/trunk/applications/content: webapp/content/datasetup/DataSetupForms.xml widget/datasetup/DataResourceSetupScreens.xml

hansbak-2
Author: hansbak
Date: Tue Jan 15 23:58:26 2008
New Revision: 612380

URL: http://svn.apache.org/viewvc?rev=612380&view=rev
Log:
add paging to the content dataresource setup screens

Modified:
    ofbiz/trunk/applications/content/webapp/content/datasetup/DataSetupForms.xml
    ofbiz/trunk/applications/content/widget/datasetup/DataResourceSetupScreens.xml

Modified: ofbiz/trunk/applications/content/webapp/content/datasetup/DataSetupForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/datasetup/DataSetupForms.xml?rev=612380&r1=612379&r2=612380&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/webapp/content/datasetup/DataSetupForms.xml (original)
+++ ofbiz/trunk/applications/content/webapp/content/datasetup/DataSetupForms.xml Tue Jan 15 23:58:26 2008
@@ -27,7 +27,7 @@
             <submit button-type="button"/>
         </field>
     </form>
-    <form name="UpdateDataResourceType" list-name="contentList" target="updateDataResourceType" title="" type="list">
+    <form name="UpdateDataResourceType" list-name="contentList" target="updateDataResourceType" title="" type="list" paginate-target="EditDataResourceType">
         <actions>
           <entity-condition entity-name="DataResourceType" use-cache="false"/>
         </actions>
@@ -57,7 +57,7 @@
         </field>
     </form>
     <form name="UpdateDataResourceTypeAttr" list-name="contentList" target="updateDataResourceTypeAttr" title="" type="list"
-        default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="tabletext">
+        default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="tabletext" paginate-target="EditDataResourceTypeAttr">
         <actions>
           <entity-condition entity-name="DataResourceTypeAttr" use-cache="false"/>
         </actions>
@@ -80,7 +80,7 @@
             <submit button-type="button"/>
         </field>
     </form>
-    <form name="UpdateCharacterSet" list-name="contentList" target="updateCharacterSet" title="" type="list">
+    <form name="UpdateCharacterSet" list-name="contentList" target="updateCharacterSet" title="" type="list" paginate-target="EditCharacterSet">
         <actions>
           <entity-condition entity-name="CharacterSet" use-cache="false"/>
         </actions>
@@ -101,16 +101,17 @@
         <auto-fields-service service-name="createDataCategory"/>
         <field name="parentCategoryId">
             <drop-down allow-empty="true">
-                <list-options list-name="dataCategoryList"
-                    key-name="dataCategoryId"  description="${categoryName}"
-                    />
+                <entity-options entity-name="DataCategory" description="${categoryName}" key-field-name="dataCategoryId"></entity-options>
             </drop-down>
         </field>
         <field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit">
             <submit button-type="button"/>
         </field>
     </form>
-    <form name="UpdateDataCategory" list-name="dataCategoryList" target="updateDataCategory" title="" type="list">
+    <form name="UpdateDataCategory" list-name="dataCategoryList" target="updateDataCategory" title="" type="list" paginate-target="EditDataCategory">
+        <actions>
+            <entity-condition entity-name="DataCategory" use-cache="false"/>
+        </actions>
         <auto-fields-service service-name="updateDataCategory"/>
         <field name="dataCategoryId" widget-style="tabletext">
             <display/>
@@ -143,7 +144,7 @@
             <submit button-type="button"/>
         </field>
     </form>
-    <form name="UpdateFileExtension" list-name="contentList" target="updateFileExtension" title="" type="list">
+    <form name="UpdateFileExtension" list-name="contentList" target="updateFileExtension" title="" type="list" paginate-target="EditFileExtension">
         <actions>
           <entity-condition entity-name="FileExtension" use-cache="false"/>
         </actions>
@@ -173,7 +174,7 @@
         </field>
     </form>
     <form name="UpdateMetaDataPredicate" list-name="contentList" target="updateMetaDataPredicate" title="" type="list"
-        default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="inputBox">
+        default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="inputBox" paginate-target="EditMetaDataPredicate">
         <actions>
           <entity-condition entity-name="MetaDataPredicate" use-cache="false"/>
         </actions>
@@ -196,7 +197,7 @@
             <submit button-type="button"/>
         </field>
     </form>
-    <form name="UpdateMimeType" list-name="contentList" target="updateMimeType" title="" type="list">
+    <form name="UpdateMimeType" list-name="contentList" target="updateMimeType" title="" type="list" paginate-target="EditMimeType">
         <actions>
           <entity-condition entity-name="MimeType" use-cache="false"/>
         </actions>
@@ -225,7 +226,7 @@
         </field>
     </form>
 
-    <form name="UpdateMimeTypeHtmlTemplate" target="updateMimeTypeHtmlTemplate" title="" type="list" paginate="true" paginate-size-field="25" list-name="contentList">
+    <form name="UpdateMimeTypeHtmlTemplate" target="updateMimeTypeHtmlTemplate" title="" type="list" list-name="contentList" paginate-target="EditMimeTypeHtmlTemplate">
         <actions>
           <entity-condition entity-name="MimeTypeHtmlTemplate" use-cache="false"/>
         </actions>

Modified: ofbiz/trunk/applications/content/widget/datasetup/DataResourceSetupScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/datasetup/DataResourceSetupScreens.xml?rev=612380&r1=612379&r2=612380&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/widget/datasetup/DataResourceSetupScreens.xml (original)
+++ ofbiz/trunk/applications/content/widget/datasetup/DataResourceSetupScreens.xml Tue Jan 15 23:58:26 2008
@@ -26,6 +26,8 @@
                 <set field="titleProperty" value="PageTitleEditDataResourceType"/>
                 <set field="headerItem" value="DataResourceSetupMenu"/>
                 <set field="tabButtonItem" to-scope="user" value="EditDataResourceType"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
             </actions>
             <widgets>
                 <decorator-screen name="commonDataResourceSetupDecorator" location="${parameters.mainDecoratorLocation}">
@@ -43,6 +45,8 @@
                 <set field="titleProperty" value="PageTitleEditDataResourceCharacterSet"/>
                 <set field="headerItem" value="DataResourceSetupMenu"/>
                 <set field="tabButtonItem" to-scope="user" value="EditCharacterSet"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
             </actions>
             <widgets>
                 <decorator-screen name="commonDataResourceSetupDecorator" location="${parameters.mainDecoratorLocation}">
@@ -60,6 +64,8 @@
                 <set field="titleProperty" value="PageTitleEditDataResourceTypeAttr"/>
                 <set field="headerItem" value="DataResourceSetupMenu"/>
                 <set field="tabButtonItem" to-scope="user" value="EditDataResourceTypeAttr"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
             </actions>
             <widgets>
                 <decorator-screen name="commonDataResourceSetupDecorator" location="${parameters.mainDecoratorLocation}">
@@ -77,6 +83,8 @@
                 <set field="titleProperty" value="PageTitleEditDataResourceFileExtension"/>
                 <set field="headerItem" value="DataResourceSetupMenu"/>
                 <set field="tabButtonItem" to-scope="user" value="EditFileExtension"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
             </actions>
             <widgets>
                 <decorator-screen name="commonDataResourceSetupDecorator" location="${parameters.mainDecoratorLocation}">
@@ -94,6 +102,8 @@
                 <set field="titleProperty" value="PageTitleEditDataResourceMetaDataPredicate"/>
                 <set field="headerItem" value="DataResourceSetupMenu"/>
                 <set field="tabButtonItem" to-scope="user" value="EditMetaDataPredicate"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
             </actions>
             <widgets>
                 <decorator-screen name="commonDataResourceSetupDecorator" location="${parameters.mainDecoratorLocation}">
@@ -111,6 +121,8 @@
                 <set field="titleProperty" value="PageTitleEditDataResourceMimeType"/>
                 <set field="headerItem" value="DataResourceSetupMenu"/>
                 <set field="tabButtonItem" to-scope="user" value="EditMimeType"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
             </actions>
             <widgets>
                 <decorator-screen name="commonDataResourceSetupDecorator" location="${parameters.mainDecoratorLocation}">
@@ -128,6 +140,8 @@
                 <set field="titleProperty" value="PageTitleEditDataResourceMimeTypeHtmlTemplate"/>
                 <set field="headerItem" value="DataResourceSetupMenu"/>
                 <set field="tabButtonItem" to-scope="user" value="EditMimeTypeHtmlTemplate"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
             </actions>
             <widgets>
                 <decorator-screen name="commonDataResourceSetupDecorator" location="${parameters.mainDecoratorLocation}">
@@ -146,6 +160,8 @@
                 <set field="headerItem" value="DataResourceSetupMenu"/>
                 <set field="tabButtonItem" to-scope="user" value="EditDataCategory"/>
                 <script location="component://content/webapp/content/WEB-INF/actions/datasetup/datacategoryprep.bsh"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
             </actions>
             <widgets>
                 <decorator-screen name="commonDataResourceSetupDecorator" location="${parameters.mainDecoratorLocation}">