svn commit: r671230 - in /ofbiz/trunk/framework/example/widget/example: ExampleAjaxScreens.xml ExampleForms.xml

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

svn commit: r671230 - in /ofbiz/trunk/framework/example/widget/example: ExampleAjaxScreens.xml ExampleForms.xml

jleroux@apache.org
Author: jleroux
Date: Tue Jun 24 09:06:17 2008
New Revision: 671230

URL: http://svn.apache.org/viewvc?rev=671230&view=rev
Log:
A patch from Bruno Busco "Example application should use FindScreenDecorator" (https://issues.apache.org/jira/browse/OFBIZ-1846) - OFBIZ-1846

Modified:
    ofbiz/trunk/framework/example/widget/example/ExampleAjaxScreens.xml
    ofbiz/trunk/framework/example/widget/example/ExampleForms.xml

Modified: ofbiz/trunk/framework/example/widget/example/ExampleAjaxScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/ExampleAjaxScreens.xml?rev=671230&r1=671229&r2=671230&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/ExampleAjaxScreens.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/ExampleAjaxScreens.xml Tue Jun 24 09:06:17 2008
@@ -26,6 +26,7 @@
             <actions>
                 <set field="headerItem" value="AjaxExample"/>
                 <set field="titleProperty" value="PageTitleFindExample"/>
+                <set field="exampleCtx" from-field="parameters"/>
             </actions>
             <widgets>
                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">

Modified: ofbiz/trunk/framework/example/widget/example/ExampleForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/ExampleForms.xml?rev=671230&r1=671229&r2=671230&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/ExampleForms.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/ExampleForms.xml Tue Jun 24 09:06:17 2008
@@ -60,9 +60,14 @@
     </form>
 
     <!-- Typically, this extended form wouldn't be necessary. The parent form (ListExamples) would
-        have these attributes. -->
+        have these attributes.
+         For the Ajax example we want all example entities listed, so the we use the entity-condition
+         instead of the performFind service. -->
     <form name="ListExamplesAjax" extends="ListExamples" type="list" paginate-target="authview/findExampleAjax">
         <on-event-update-area event-type="paginate" area-id="ListExamplesAjax" area-target="ListExampleFormOnly"/>
+        <actions>
+            <entity-condition entity-name="Example"><order-by field-name="exampleName"/></entity-condition>
+        </actions>
     </form>
 
     <form name="EditExample" type="single" target="updateExample" title="" default-map-name="example">