From 5b810b9f29239656e2e1f7787cba4abdecde47c8 Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Mon, 15 Dec 2008 22:07:55 +0000 Subject: [PATCH] Minor formatting fixes. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726836 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/ofbiz/content/data/DataResourceWorker.java | 7 +++---- applications/content/widget/content/DataResourceForms.xml | 4 ++-- .../order/widget/ordermgr/OrderEntryCartScreens.xml | 4 ++-- applications/party/widget/partymgr/ProfileScreens.xml | 2 +- framework/common/widget/CommonScreens.xml | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java b/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java index 031ae01e92..55df0ea252 100644 --- a/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java +++ b/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java @@ -577,8 +577,8 @@ public class DataResourceWorker implements org.ofbiz.widget.DataResourceWorkerI public static void renderDataResourceAsText(GenericDelegator delegator, String dataResourceId, Appendable out, Map templateContext, Locale locale, String targetMimeTypeId, boolean cache) throws GeneralException, IOException { if (dataResourceId == null) { - throw new GeneralException("Cannot lookup data resource with for a null dataResourceId"); - } + throw new GeneralException("Cannot lookup data resource with for a null dataResourceId"); + } if (templateContext == null) { templateContext = FastMap.newInstance(); } @@ -635,9 +635,8 @@ public class DataResourceWorker implements org.ofbiz.widget.DataResourceWorkerI // no template; or template is NONE; render the data if (UtilValidate.isEmpty(dataTemplateTypeId) || "NONE".equals(dataTemplateTypeId)) { DataResourceWorker.writeDataResourceText(dataResource, targetMimeTypeId, locale, templateContext, delegator, out, true); - - // a template is defined; render the template first } else { + // a template is defined; render the template first templateContext.put("mimeTypeId", targetMimeTypeId); // FTL template diff --git a/applications/content/widget/content/DataResourceForms.xml b/applications/content/widget/content/DataResourceForms.xml index 826fb27e90..9a748e2c29 100644 --- a/applications/content/widget/content/DataResourceForms.xml +++ b/applications/content/widget/content/DataResourceForms.xml @@ -261,7 +261,7 @@ under the License.
- + @@ -271,7 +271,7 @@ under the License.
- + diff --git a/applications/order/widget/ordermgr/OrderEntryCartScreens.xml b/applications/order/widget/ordermgr/OrderEntryCartScreens.xml index e0796f0ab2..5e8191179b 100644 --- a/applications/order/widget/ordermgr/OrderEntryCartScreens.xml +++ b/applications/order/widget/ordermgr/OrderEntryCartScreens.xml @@ -29,8 +29,8 @@ under the License. - - + + diff --git a/applications/party/widget/partymgr/ProfileScreens.xml b/applications/party/widget/partymgr/ProfileScreens.xml index 160e6ba01e..dcfd26f77d 100644 --- a/applications/party/widget/partymgr/ProfileScreens.xml +++ b/applications/party/widget/partymgr/ProfileScreens.xml @@ -43,7 +43,7 @@
- + diff --git a/framework/common/widget/CommonScreens.xml b/framework/common/widget/CommonScreens.xml index a21dece45b..5930901ae7 100644 --- a/framework/common/widget/CommonScreens.xml +++ b/framework/common/widget/CommonScreens.xml @@ -154,7 +154,7 @@ under the License.
- +