From f5012cfbf83b4e2b18b514fa143d7a967b5bb948 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Tue, 7 Sep 2010 20:46:32 +0000 Subject: [PATCH] 1st pass on Example component clean-up I began to clean and make things consistent for lookups (in order to demonstrate the new Name/id mechanism) but then I realized that it should use Example entity and not Party. I will change that later and will remove all out-of-framework dependencies in the Example component * I have added an example of the new Name/id mechanism * I removed deprecated snippets in ExampleForms (some were already commented out) and used rather LookupExampleFeature enhanced with autocomplete * In FormWidgetExampleForms.xml I tried to clean things for the autocomplete in the 1st lookup, but I thing there is an issue when more than one name field is retrieved. It does not behave consistently, try for a Person and a PartyGroup for instance... git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@993527 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/example/WEB-INF/controller.xml | 8 +-- .../widget/example/ExampleFeatureScreens.xml | 17 ++++- .../example/widget/example/ExampleForms.xml | 22 ++----- .../example/FormWidgetExampleLookupForms.xml | 18 ++---- .../FormWidgetExampleLookupScreens.xml | 64 +++++-------------- 5 files changed, 47 insertions(+), 82 deletions(-) diff --git a/framework/example/webapp/example/WEB-INF/controller.xml b/framework/example/webapp/example/WEB-INF/controller.xml index f76fae7adf..0b7d1c5d56 100644 --- a/framework/example/webapp/example/WEB-INF/controller.xml +++ b/framework/example/webapp/example/WEB-INF/controller.xml @@ -192,8 +192,8 @@ under the License. - - + + @@ -252,8 +252,8 @@ under the License. - - + + diff --git a/framework/example/widget/example/ExampleFeatureScreens.xml b/framework/example/widget/example/ExampleFeatureScreens.xml index 8e46880b64..19d98cad74 100644 --- a/framework/example/widget/example/ExampleFeatureScreens.xml +++ b/framework/example/widget/example/ExampleFeatureScreens.xml @@ -106,10 +106,25 @@ under the License. + + + + + + + + + + + + + + + - + diff --git a/framework/example/widget/example/ExampleForms.xml b/framework/example/widget/example/ExampleForms.xml index 127da96d8d..0ab745b418 100644 --- a/framework/example/widget/example/ExampleForms.xml +++ b/framework/example/widget/example/ExampleForms.xml @@ -236,30 +236,20 @@ under the License.
- - - - + - - - - + + diff --git a/framework/example/widget/example/FormWidgetExampleLookupForms.xml b/framework/example/widget/example/FormWidgetExampleLookupForms.xml index d03c8ecbb4..28969835ec 100644 --- a/framework/example/widget/example/FormWidgetExampleLookupForms.xml +++ b/framework/example/widget/example/FormWidgetExampleLookupForms.xml @@ -21,7 +21,7 @@ under the License. - @@ -36,7 +36,7 @@ under the License. -
@@ -57,10 +57,10 @@ under the License. -
- + @@ -75,7 +75,7 @@ under the License.
-
@@ -95,12 +95,4 @@ under the License. -
- - - - -
-
diff --git a/framework/example/widget/example/FormWidgetExampleLookupScreens.xml b/framework/example/widget/example/FormWidgetExampleLookupScreens.xml index 31d65293b4..f3384de783 100644 --- a/framework/example/widget/example/FormWidgetExampleLookupScreens.xml +++ b/framework/example/widget/example/FormWidgetExampleLookupScreens.xml @@ -20,7 +20,7 @@ under the License. - +
@@ -64,7 +64,7 @@ under the License.
- +
@@ -79,15 +79,21 @@ under the License. - + + + + + - - - + - - + + + + + +