[OFBiz] SVN: r6057 - in trunk/framework/example: script/org/ofbiz/example/example webapp/example/WEB-INF widget/example

jonesde at svn.ofbiz.org jonesde at svn.ofbiz.org
Tue Nov 1 08:34:48 EST 2005


Author: jonesde
Date: 2005-11-01 07:34:36 -0600 (Tue, 01 Nov 2005)
New Revision: 6057

Modified:
   trunk/framework/example/script/org/ofbiz/example/example/ExampleServices.xml
   trunk/framework/example/webapp/example/WEB-INF/controller.xml
   trunk/framework/example/widget/example/ExampleForms.xml
   trunk/framework/example/widget/example/ExampleScreens.xml
Log:
A few minor cleanups done during a training session

Modified: trunk/framework/example/script/org/ofbiz/example/example/ExampleServices.xml
===================================================================
--- trunk/framework/example/script/org/ofbiz/example/example/ExampleServices.xml	2005-11-01 01:01:39 UTC (rev 6056)
+++ trunk/framework/example/script/org/ofbiz/example/example/ExampleServices.xml	2005-11-01 13:34:36 UTC (rev 6057)
@@ -66,7 +66,7 @@
             <call-service service-name="createExampleStatus" in-map-name="createExampleStatusMap"/>
         </if-compare-field>
 
-        <set-nonpk-fields value-name="lookedUpValue" map-name="parameters"/>
+        <set-nonpk-fields map-name="parameters" value-name="lookedUpValue"/>
         <store-value value-name="lookedUpValue"/>
     </simple-method>
     <simple-method method-name="deleteExample" short-description="delete a Example">

Modified: trunk/framework/example/webapp/example/WEB-INF/controller.xml
===================================================================
--- trunk/framework/example/webapp/example/WEB-INF/controller.xml	2005-11-01 01:01:39 UTC (rev 6056)
+++ trunk/framework/example/webapp/example/WEB-INF/controller.xml	2005-11-01 13:34:36 UTC (rev 6057)
@@ -37,7 +37,7 @@
     <handler name="ftl" type="view" class="org.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>
     <handler name="jsp" type="view" class="org.ofbiz.webapp.view.JspViewHandler"/>
     <handler name="screen" type="view" class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
-    
+
     <handler name="http" type="view" class="org.ofbiz.webapp.view.HttpViewHandler"/>
     <handler name="datavision" type="view" class="org.ofbiz.webapp.view.DataVisionViewHandler"/>
     <handler name="jasperreportspdf" type="view" class="org.ofbiz.webapp.view.JasperReportsPdfViewHandler"/>

Modified: trunk/framework/example/widget/example/ExampleForms.xml
===================================================================
--- trunk/framework/example/widget/example/ExampleForms.xml	2005-11-01 01:01:39 UTC (rev 6056)
+++ trunk/framework/example/widget/example/ExampleForms.xml	2005-11-01 13:34:36 UTC (rev 6057)
@@ -23,8 +23,8 @@
 
 <forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-form.xsd">
-    <form name="ListExamples" type="list"  list-name="examples" paginate-target="FindExample"
-             default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext">
+    <form name="ListExamples" type="list" list-name="examples" paginate-target="FindExample"
+             default-title-style="tableheadtext" default-widget-style="tabletext" default-tooltip-style="tabletext">
         <actions>
             <entity-condition entity-name="Example">
                 <order-by field-name="description"/>
@@ -32,15 +32,14 @@
         </actions>
         
         <field name="exampleId" title="${uiLabelMap.ExampleExampleId}" widget-style="buttontext">
-            <hyperlink also-hidden="false" description="[${exampleId}]" target="EditExample?exampleId=${exampleId}"/>
+            <hyperlink also-hidden="false" description="${exampleId}" target="EditExample?exampleId=${exampleId}"/>
         </field>
         <field name="exampleName" title="${uiLabelMap.CommonName}"><display/></field>
         <field name="exampleTypeId" title="${uiLabelMap.CommonType}"><display-entity entity-name="ExampleType"/></field>
         <field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem"/></field>
         <field name="description" title="${uiLabelMap.CommonDescription}"><display/></field>
     </form>
-    <form name="EditExample" type="single" 
-            target="updateExample" title="" default-map-name="example"
+    <form name="EditExample" type="single" target="updateExample" title="" default-map-name="example"
             default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext">
         <actions>
             <entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
@@ -50,9 +49,9 @@
         <alt-target use-when="example==null" target="createExample"/>
         <auto-fields-service service-name="updateExample"/>
  
-        <field use-when="example!=null" name="exampleId" title="${uiLabelMap.ExampleExampleId}" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
+        <field use-when="example!=null" name="exampleId" title="${uiLabelMap.ExampleExampleId}" tooltip="${uiLabelMap.CommonNotModifRecreat}" widget-style="tabletext"><display/></field>
         <field use-when="example==null&amp;&amp;exampleId==null" name="exampleId" title="${uiLabelMap.ExampleExampleId}"><ignored/></field>
-        <field use-when="example==null&amp;&amp;exampleId!=null" name="exampleId" title="${uiLabelMap.ExampleExampleId}"><display description="${uiLabelMap.CommonCannotBeFound}: [${exampleId}]" also-hidden="false"/></field>
+        <field use-when="example==null&amp;&amp;exampleId!=null" name="exampleId" title="${uiLabelMap.ExampleExampleId}" widget-style="tabletext"><display description="${uiLabelMap.CommonCannotBeFound}: [${exampleId}]" also-hidden="false"/></field>
 
         <field name="exampleTypeId" title="${uiLabelMap.CommonType}" widget-style="selectBox">
             <drop-down allow-empty="false">

Modified: trunk/framework/example/widget/example/ExampleScreens.xml
===================================================================
--- trunk/framework/example/widget/example/ExampleScreens.xml	2005-11-01 01:01:39 UTC (rev 6056)
+++ trunk/framework/example/widget/example/ExampleScreens.xml	2005-11-01 13:34:36 UTC (rev 6057)
@@ -40,9 +40,7 @@
                             </condition>
                             <widgets>
                                 <container><label style="head1">${uiLabelMap.${titleProperty}}</label></container>
-                                <container>
-                                    <link target="EditExample" text="[${uiLabelMap.ExampleNewExample}]" style="buttontext"/>
-                                </container>
+                                <container><link target="EditExample" text="${uiLabelMap.ExampleNewExample}" style="buttontext"/></container>
                                 <include-form name="ListExamples" location="component://example/widget/example/ExampleForms.xml"/>
                             </widgets>
                             <fail-widgets>
@@ -78,12 +76,8 @@
                                     </condition>
                                     <widgets>
                                         <include-menu name="EditExample" location="component://example/widget/example/ExampleMenus.xml"/>
-                                        <container>
-                                            <link target="EditExample" text="[${uiLabelMap.ExampleNewExample}]" style="buttontext"/>
-                                        </container>
-                                        <container>
-                                            <label style="head1">${uiLabelMap.${titleProperty}}</label><label style="head2"> for "${example.exampleName}" [${exampleId}]</label>
-                                        </container>
+                                        <container><link target="EditExample" text="${uiLabelMap.ExampleNewExample}" style="buttontext"/></container>
+                                        <container><label style="head1">${uiLabelMap.${titleProperty}}</label><label style="head2"> for "${example.exampleName}" [${exampleId}]</label></container>
                                     </widgets>
                                 </section>
 



More information about the Svn mailing list