diff --git a/framework/component-load.xml b/framework/component-load.xml index eedcdb21c4..8c3bb4bceb 100644 --- a/framework/component-load.xml +++ b/framework/component-load.xml @@ -40,4 +40,5 @@ under the License. + diff --git a/framework/example/config/ExampleUiLabels.properties b/framework/example/config/ExampleUiLabels.properties index b84cf1cc2b..561b2597a3 100644 --- a/framework/example/config/ExampleUiLabels.properties +++ b/framework/example/config/ExampleUiLabels.properties @@ -36,6 +36,7 @@ ExampleExampleFeatureId=Example Feature ID ExampleMessage=For something interesting make sure you are logged in, try username:admin, password:ofbiz. ExampleNewExample=New Example ExampleNewExampleFeature=New Example Feature +ExampleOriginalExample=Original Example ExampleErrorNoExampleStatusValidChange=Error\: status change from [${lookedUpValue.statusId}] to [${parameters.statusId}] is not allowed. ExamplePermissionError=Security Error\: to run ${resourceDescription} you must have the EXAMPLE_${mainAction} or EXAMPLE_ADMIN permission diff --git a/framework/example/webapp/example/WEB-INF/web.xml b/framework/example/webapp/example/WEB-INF/web.xml index 0de324bac0..d01e31b73a 100644 --- a/framework/example/webapp/example/WEB-INF/web.xml +++ b/framework/example/webapp/example/WEB-INF/web.xml @@ -31,7 +31,12 @@ under the License. entityDelegatorNamedefault The Name of the Entity Delegator to use, defined in entityengine.xml - + + mainDecoratorLocation + component://example/widget/example/CommonScreens.xml + The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files. + + ContextFilter ContextFilter diff --git a/framework/example/widget/example/CommonScreens.xml b/framework/example/widget/example/CommonScreens.xml index ad7f4ae534..0c012ac6f7 100644 --- a/framework/example/widget/example/CommonScreens.xml +++ b/framework/example/widget/example/CommonScreens.xml @@ -41,6 +41,90 @@ under the License. + +
+ + + + + + + + + +
+ + + + + +
+ + + + + + + + +
+ + +
+ + + +
+
+
+
+
+
+ +
+ + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + +
+ + +
+ + + +
+
+
+
+
+
+ +
@@ -65,7 +149,6 @@ under the License.
-
diff --git a/framework/example/widget/example/ExampleFeatureScreens.xml b/framework/example/widget/example/ExampleFeatureScreens.xml index 19d586bf17..20dc2f0cc1 100644 --- a/framework/example/widget/example/ExampleFeatureScreens.xml +++ b/framework/example/widget/example/ExampleFeatureScreens.xml @@ -27,7 +27,7 @@ under the License. - +
@@ -50,50 +50,6 @@ under the License.
- -
- - - - - - - - - -
- - - - - -
- - - - - - - - - - - - -
- - -
- - - -
-
-
-
-
-
-
@@ -104,7 +60,7 @@ under the License. - + @@ -121,7 +77,7 @@ under the License. - + diff --git a/framework/example/widget/example/ExampleForms.xml b/framework/example/widget/example/ExampleForms.xml index ad48cec381..5a327a554c 100644 --- a/framework/example/widget/example/ExampleForms.xml +++ b/framework/example/widget/example/ExampleForms.xml @@ -81,7 +81,10 @@ under the License. - + + + + diff --git a/framework/example/widget/example/ExampleMenus.xml b/framework/example/widget/example/ExampleMenus.xml index a44eef8203..89036eaa1c 100644 --- a/framework/example/widget/example/ExampleMenus.xml +++ b/framework/example/widget/example/ExampleMenus.xml @@ -20,10 +20,8 @@ under the License. - + @@ -34,10 +32,8 @@ under the License. - + diff --git a/framework/example/widget/example/ExampleScreens.xml b/framework/example/widget/example/ExampleScreens.xml index bc3d32982e..3af6269b49 100644 --- a/framework/example/widget/example/ExampleScreens.xml +++ b/framework/example/widget/example/ExampleScreens.xml @@ -27,7 +27,7 @@ under the License. - +
@@ -48,46 +48,6 @@ under the License.
- -
- - - - - - - - - -
- - - - - -
- - - - - - - - -
- - -
- - - -
-
-
-
-
-
-
@@ -98,7 +58,7 @@ under the License. - + @@ -115,7 +75,7 @@ under the License. - + @@ -133,7 +93,7 @@ under the License. - + diff --git a/framework/exampleext/ofbiz-component.xml b/framework/exampleext/ofbiz-component.xml new file mode 100644 index 0000000000..5a942e65de --- /dev/null +++ b/framework/exampleext/ofbiz-component.xml @@ -0,0 +1,28 @@ + + + + + + + + diff --git a/framework/exampleext/webapp/exampleext/WEB-INF/controller.xml b/framework/exampleext/webapp/exampleext/WEB-INF/controller.xml new file mode 100644 index 0000000000..09b4f0a69a --- /dev/null +++ b/framework/exampleext/webapp/exampleext/WEB-INF/controller.xml @@ -0,0 +1,28 @@ + + + + + + + Extended Catalog Manager Controller Configuration File + + + diff --git a/framework/exampleext/webapp/exampleext/WEB-INF/web.xml b/framework/exampleext/webapp/exampleext/WEB-INF/web.xml new file mode 100644 index 0000000000..7c1cc93192 --- /dev/null +++ b/framework/exampleext/webapp/exampleext/WEB-INF/web.xml @@ -0,0 +1,75 @@ + + + + + + Open For Business - Extended Example Component + Extended Example Component of the Open For Business Project + + + localDispatcherNameexampleext + A unique name used to identify/recognize the local dispatcher for the Service Engine + + + entityDelegatorNamedefault + The Name of the Entity Delegator to use, defined in entityengine.xml + + + mainDecoratorLocation + component://exampleext/widget/example/CommonScreens.xml + The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files. + + + + ContextFilter + ContextFilter + org.ofbiz.webapp.control.ContextFilter + disableContextSecurityN + + allowedPaths + /control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css + + errorCode403 + redirectPath/control/main + + ContextFilter/* + + org.ofbiz.webapp.control.ControlEventListener + org.ofbiz.webapp.control.LoginEventListener + + + + + ControlServlet + ControlServlet + Main Control Servlet + org.ofbiz.webapp.control.ControlServlet + 1 + + ControlServlet/control/* + + 60 + + + index.jsp + index.html + index.htm + + diff --git a/framework/exampleext/webapp/exampleext/index.jsp b/framework/exampleext/webapp/exampleext/index.jsp new file mode 100644 index 0000000000..598a0734f7 --- /dev/null +++ b/framework/exampleext/webapp/exampleext/index.jsp @@ -0,0 +1 @@ +<%response.sendRedirect("control/main");%> \ No newline at end of file diff --git a/framework/exampleext/widget/example/CommonScreens.xml b/framework/exampleext/widget/example/CommonScreens.xml new file mode 100644 index 0000000000..3b4149ef4f --- /dev/null +++ b/framework/exampleext/widget/example/CommonScreens.xml @@ -0,0 +1,81 @@ + + + + + + +
+ + + + + + +
+
+ + +
+ + + + + + + + + +
+ + + + + +
+ + + + + + + + +
+ + +
+ + + +
+
+
+
+
+
+ +
+ + + +
+
+
diff --git a/framework/exampleext/widget/example/ExampleForms.xml b/framework/exampleext/widget/example/ExampleForms.xml new file mode 100644 index 0000000000..b1727d0f6e --- /dev/null +++ b/framework/exampleext/widget/example/ExampleForms.xml @@ -0,0 +1,35 @@ + + + + +
+ + + + + + + + + +
+
diff --git a/framework/exampleext/widget/example/ExampleMenus.xml b/framework/exampleext/widget/example/ExampleMenus.xml new file mode 100644 index 0000000000..c18eba53eb --- /dev/null +++ b/framework/exampleext/widget/example/ExampleMenus.xml @@ -0,0 +1,29 @@ + + + + + + + + + + diff --git a/framework/exampleext/widget/example/ExampleScreens.xml b/framework/exampleext/widget/example/ExampleScreens.xml new file mode 100644 index 0000000000..932e16ac97 --- /dev/null +++ b/framework/exampleext/widget/example/ExampleScreens.xml @@ -0,0 +1,43 @@ + + + + + + +
+ + + + + + + + + + + + + + + +
+
+