Minor formatting fixes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726836 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2008-12-15 22:07:55 +00:00
parent 7e7f74dc8b
commit 5b810b9f29
5 changed files with 9 additions and 10 deletions
@@ -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
@@ -261,7 +261,7 @@ under the License.
</form>
<form name="EditDataResourceText" target="updateDataResourceText" title="" type="single" extends="DataResourceMaster"
header-row-style="header-row" default-table-style="basic-table">
<field name="dataResourceId"><display/></field>
<field name="dataResourceId"><hidden/></field>
<field name="dataResourceTypeId"><hidden value="ELECTRONIC_TEXT"/></field>
<field name="dataResourceTypeIdDisplay" title="Type Id" field-name="dataResourceTypeId">
<display description="ELECTRONIC_TEXT" also-hidden="false"/>
@@ -271,7 +271,7 @@ under the License.
</form>
<form name="EditDataResourceUpload" target="updateDataResourceUpload" title="" type="single" extends="DataResourceMaster"
header-row-style="header-row" default-table-style="basic-table">
<field name="dataResourceId"><display/></field>
<field name="dataResourceId"><hidden/></field>
<field name="dataResourceTypeId"><hidden value="IMAGE_OBJECT"/></field>
<field name="dataResourceTypeIdDisplay" title="Type Id" field-name="dataResourceTypeId">
<display description="IMAGE_OBJECT" also-hidden="false"/>
@@ -29,8 +29,8 @@ under the License.
<set field="hidebottomlinks" value="Y"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/minicart.ftl"/></html></platform-specific>
</widgets>
<platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/cart/minicart.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
@@ -43,7 +43,7 @@
<section>
<condition>
<if-has-permission permission="PARTYMGR" action="_GRP_UPDATE"/>
</condition>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PartyPersonalInformation}" navigation-menu-name="personUpdate" id="PartyPersonalInformationPanel">
<include-menu name="personUpdate" location="component://party/widget/partymgr/PartyMenus.xml"/>
+1 -1
View File
@@ -154,7 +154,7 @@ under the License.
</section>
<platform-specific><html><html-template location="component://common/webcommon/includes/messages.ftl"/></html></platform-specific>
<container style="contentarea">
<!-- may be used by sight disabled persons to skip diretly to content area-->
<!-- may be used by sight disabled persons to skip directly to content area-->
<decorator-section-include name="pre-body"/>
<!-- Please don't change the column-container id : it's referenced to allow skipping navigation-->
<container id="column-container">