You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2009/09/09 15:25:25 UTC
svn commit: r812948 - in /ofbiz/trunk/specialpurpose/ebay:
webapp/ebay/WEB-INF/web.xml widget/CommonScreens.xml widget/EbayScreens.xml
Author: ashish
Date: Wed Sep 9 13:25:25 2009
New Revision: 812948
URL: http://svn.apache.org/viewvc?rev=812948&view=rev
Log:
Cleanup - Moved the screens definition to appropriate location.
Added:
ofbiz/trunk/specialpurpose/ebay/widget/CommonScreens.xml (with props)
Modified:
ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/web.xml
ofbiz/trunk/specialpurpose/ebay/widget/EbayScreens.xml
Modified: ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/web.xml?rev=812948&r1=812947&r2=812948&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/web.xml (original)
+++ ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/web.xml Wed Sep 9 13:25:25 2009
@@ -40,7 +40,7 @@
</context-param>
<context-param>
<param-name>mainDecoratorLocation</param-name>
- <param-value>component://ebay/widget/EbayScreens.xml</param-value>
+ <param-value>component://ebay/widget/CommonScreens.xml</param-value>
<description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description>
</context-param>
Added: ofbiz/trunk/specialpurpose/ebay/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/widget/CommonScreens.xml?rev=812948&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/widget/CommonScreens.xml (added)
+++ ofbiz/trunk/specialpurpose/ebay/widget/CommonScreens.xml Wed Sep 9 13:25:25 2009
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
+
+ <screen name="main-decorator">
+ <section>
+ <actions>
+ <property-map resource="EbayUiLabels" map-name="uiLabelMap" global="true"/>
+ <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
+ <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
+ <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
+ <set field="activeApp" value="ebay" global="true"/>
+ <set field="layoutSettings.companyName" from-field="uiLabelMap.EbayCompanyName" global="true"/>
+ <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.EbayApplication" global="true"/>
+ <set field="applicationMenuName" value="EbayAppBar" global="true"/>
+ <set field="applicationMenuLocation" value="component://ebay/widget/EbayMenus.xml" global="true"/>
+ <set field="applicationTitle" value="${uiLabelMap.EbayApplication}" global="true"/>
+ </actions>
+ <widgets>
+ <include-screen name="ApplicationDecorator" location="component://commonext/widget/CommonScreens.xml"/>
+ </widgets>
+ </section>
+ </screen>
+
+ <screen name="CommonProductDecorator">
+ <section>
+ <actions>
+ <property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
+
+ <set field="productId" from-field="parameters.productId"/>
+ <entity-one entity-name="Product" value-field="product"/>
+ <set field="productName" from-field="product.productName"/>
+ </actions>
+ <widgets>
+ <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <!-- do check for EBAY, _VIEW permission -->
+ <condition>
+ <if-has-permission permission="EBAY" action="_VIEW"/>
+ </condition>
+ <widgets>
+ <section>
+ <condition><not><if-empty field="product"/></not></condition>
+ <widgets>
+ <include-menu name="ProductTabBar" location="component://product/widget/catalog/Menus.xml"/>
+ <container>
+ <label style="h1">${uiLabelMap.${labelTitleProperty}} ${uiLabelMap.CommonFor}: ${product.internalName} [${uiLabelMap.CommonId}:${productId}] ${${extraFunctionName}}</label>
+ <image src="${product.smallImageUrl}" height="40" width="40" url-mode="content"/>
+ </container>
+
+ <!-- add Create Product and View Product (in ecommerce) links -->
+ <container style="button-bar">
+ <link target="EditProduct" text="${uiLabelMap.ProductNewProduct}" style="buttontext"/>
+ <link target="CreateVirtualWithVariantsForm" text="${uiLabelMap.ProductNewVirtualProduct}" style="buttontext"/>
+ <link target="/ecommerce/control/product" url-mode="inter-app" text="${uiLabelMap.ProductProductPage}" style="buttontext">
+ <parameter param-name="product_id" from-field="productId"/>
+ </link>
+ <link target="ProductBarCode.pdf" target-window="_blank" text="${uiLabelMap.ProductBarcode}" style="buttontext">
+ <parameter param-name="productId"/>
+ <parameter param-name="productName"/>
+ </link>
+ </container>
+ </widgets>
+ </section>
+
+ <decorator-section-include name="body"/>
+ </widgets>
+ <fail-widgets>
+ <label style="h3">${uiLabelMap.ProductCatalogViewPermissionError}</label>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
+ <screen name="permission-decorator">
+ <section>
+ <actions>
+ </actions>
+ <widgets>
+ <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <condition>
+ <if-has-permission permission="EBAY" action="_VIEW"/>
+ </condition>
+ <widgets>
+ <decorator-section-include name="body"/>
+ </widgets>
+ <fail-widgets>
+ <label style="h3">${uiLabelMap.EbayViewPermissionError}</label>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+</screens>
\ No newline at end of file
Propchange: ofbiz/trunk/specialpurpose/ebay/widget/CommonScreens.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/specialpurpose/ebay/widget/CommonScreens.xml
------------------------------------------------------------------------------
svn:keywords = Date Rev Author URL Id
Propchange: ofbiz/trunk/specialpurpose/ebay/widget/CommonScreens.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: ofbiz/trunk/specialpurpose/ebay/widget/EbayScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/widget/EbayScreens.xml?rev=812948&r1=812947&r2=812948&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/widget/EbayScreens.xml (original)
+++ ofbiz/trunk/specialpurpose/ebay/widget/EbayScreens.xml Wed Sep 9 13:25:25 2009
@@ -21,104 +21,6 @@
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
- <screen name="main-decorator">
- <section>
- <actions>
- <property-map resource="EbayUiLabels" map-name="uiLabelMap" global="true"/>
- <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
- <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
- <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
- <set field="activeApp" value="ebay" global="true"/>
- <set field="layoutSettings.companyName" from-field="uiLabelMap.EbayCompanyName" global="true"/>
- <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.EbayApplication" global="true"/>
- <set field="applicationMenuName" value="EbayAppBar" global="true"/>
- <set field="applicationMenuLocation" value="component://ebay/widget/EbayMenus.xml" global="true"/>
- <set field="applicationTitle" value="${uiLabelMap.EbayApplication}" global="true"/>
- </actions>
- <widgets>
- <include-screen name="ApplicationDecorator" location="component://commonext/widget/CommonScreens.xml"/>
- </widgets>
- </section>
- </screen>
-
- <screen name="CommonProductDecorator">
- <section>
- <actions>
- <property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
-
- <set field="productId" from-field="parameters.productId"/>
- <entity-one entity-name="Product" value-field="product"/>
- <set field="productName" from-field="product.productName"/>
- </actions>
- <widgets>
- <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
- <decorator-section name="body">
- <section>
- <!-- do check for EBAY, _VIEW permission -->
- <condition>
- <if-has-permission permission="EBAY" action="_VIEW"/>
- </condition>
- <widgets>
- <section>
- <condition><not><if-empty field="product"/></not></condition>
- <widgets>
- <include-menu name="ProductTabBar" location="component://product/widget/catalog/Menus.xml"/>
- <container>
- <label style="h1">${uiLabelMap.${labelTitleProperty}} ${uiLabelMap.CommonFor}: ${product.internalName} [${uiLabelMap.CommonId}:${productId}] ${${extraFunctionName}}</label>
- <image src="${product.smallImageUrl}" height="40" width="40" url-mode="content"/>
- </container>
-
- <!-- add Create Product and View Product (in ecommerce) links -->
- <container style="button-bar">
- <link target="EditProduct" text="${uiLabelMap.ProductNewProduct}" style="buttontext"/>
- <link target="CreateVirtualWithVariantsForm" text="${uiLabelMap.ProductNewVirtualProduct}" style="buttontext"/>
- <link target="/ecommerce/control/product" url-mode="inter-app" text="${uiLabelMap.ProductProductPage}" style="buttontext">
- <parameter param-name="product_id" from-field="productId"/>
- </link>
- <link target="ProductBarCode.pdf" target-window="_blank" text="${uiLabelMap.ProductBarcode}" style="buttontext">
- <parameter param-name="productId"/>
- <parameter param-name="productName"/>
- </link>
- </container>
- </widgets>
- </section>
-
- <decorator-section-include name="body"/>
- </widgets>
- <fail-widgets>
- <label style="h3">${uiLabelMap.ProductCatalogViewPermissionError}</label>
- </fail-widgets>
- </section>
- </decorator-section>
- </decorator-screen>
- </widgets>
- </section>
- </screen>
-
- <screen name="permission-decorator">
- <section>
- <actions>
- </actions>
- <widgets>
- <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
- <decorator-section name="body">
- <section>
- <condition>
- <if-has-permission permission="EBAY" action="_VIEW"/>
- </condition>
- <widgets>
- <decorator-section-include name="body"/>
- </widgets>
- <fail-widgets>
- <label style="h3">${uiLabelMap.EbayViewPermissionError}</label>
- </fail-widgets>
- </section>
- </decorator-section>
- </decorator-screen>
- </widgets>
- </section>
- </screen>
-
<screen name="advancedsearch">
<section>
<actions>
@@ -134,7 +36,7 @@
<script location="component://product/webapp/catalog/WEB-INF/actions/find/advancedsearchoptions.groovy"/>
</actions>
<widgets>
- <decorator-screen name="permission-decorator">
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/catalog/find/advancedsearch.ftl"/></html>
@@ -153,7 +55,7 @@
<script location="component://product/webapp/catalog/WEB-INF/actions/find/keywordsearch.groovy"/>
</actions>
<widgets>
- <decorator-screen name="permission-decorator">
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/catalog/find/keywordsearch.ftl"/></html>
@@ -180,7 +82,7 @@
<script location="component://ebay/webapp/ebay/WEB-INF/actions/find/ProductsExportToEbay.groovy"/>
</actions>
<widgets>
- <decorator-screen name="permission-decorator">
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
@@ -214,7 +116,7 @@
<set field="orderList" from-field="parameters.orderList"/>
</actions>
<widgets>
- <decorator-screen name="permission-decorator">
+ <decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">