2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty) Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg) Of course this effort to remove trailing spaces has no functional implications. Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135 In the meantime I did some refactoring also in *.java and *.groovy files : ){ => ) { if( => if ( while( => while ( }else => } else else{ => else { switch( => switch ( try{ => try { }catch => } catch catch( => catch ( }finally{ => } finally { So these changes are also in this commit, should not be a problem anyway. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
# 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
|
||||
|
||||
@@ -23,7 +23,7 @@ under the License.
|
||||
<PortalPage portalPageId="EXAMPLE" sequenceNum="0" portalPageName="Example Portal Page" description="The default example OFBiz portal page" ownerUserLoginId="_NA_"/>
|
||||
<PortalPageColumn portalPageId="EXAMPLE" columnSeqId="00001" columnWidthPercentage="50"/>
|
||||
<PortalPageColumn portalPageId="EXAMPLE" columnSeqId="00002"/><!-- no width in pixels or percent, use the rest of the space available -->
|
||||
|
||||
|
||||
<PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="EXAMPLE_1" portletSeqId="00001" columnSeqId="00001" sequenceNum="0"/>
|
||||
<PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="EXAMPLE_3" portletSeqId="00001" columnSeqId="00002" sequenceNum="1"/>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ under the License.
|
||||
screenName="ExamplePortlet1" screenLocation="component://example/widget/example/PortletScreens.xml"
|
||||
editFormName="ExamplePortlet1Edit" editFormLocation="component://example/widget/example/PortletEditForms.xml"
|
||||
screenshot="/images/ofbiz_logo.jpg"/>
|
||||
|
||||
|
||||
<PortalPortlet portalPortletId="EXAMPLE_2" portletName="Example 2" description="Example portlet n. 2"
|
||||
screenName="ExamplePortlet2" screenLocation="component://example/widget/example/PortletScreens.xml"
|
||||
screenshot="/images/opentravelsystem_logo.jpg"/>
|
||||
@@ -30,7 +30,7 @@ under the License.
|
||||
<PortalPortlet portalPortletId="EXAMPLE_3" portletName="Example 3" description="Example portlet n. 3"
|
||||
screenName="ExamplePortlet3" screenLocation="component://example/widget/example/PortletScreens.xml"
|
||||
editFormName="ExamplePortlet3Edit" editFormLocation="component://example/widget/example/PortletEditForms.xml"/>
|
||||
|
||||
|
||||
<PortletCategory portletCategoryId="EXAMPLE" description="Example Portlet(s)"/>
|
||||
<PortletPortletCategory portalPortletId="EXAMPLE_1" portletCategoryId="EXAMPLE"/>
|
||||
<PortletPortletCategory portalPortletId="EXAMPLE_2" portletCategoryId="EXAMPLE"/>
|
||||
|
||||
@@ -22,11 +22,11 @@ under the License.
|
||||
<ExampleType exampleTypeId="MADE_UP" description="Made Up" parentTypeId=""/>
|
||||
<ExampleType exampleTypeId="CONTRIVED" description="Contrived" parentTypeId="MADE_UP"/>
|
||||
<ExampleType exampleTypeId="INSPIRED" description="Inspired" parentTypeId="MADE_UP"/>
|
||||
|
||||
|
||||
<ExampleFeatureApplType exampleFeatureApplTypeId="REQUIRED" description="Required" parentTypeId=""/>
|
||||
<ExampleFeatureApplType exampleFeatureApplTypeId="DESIRED" description="Desired" parentTypeId=""/>
|
||||
<ExampleFeatureApplType exampleFeatureApplTypeId="NOT_ALLOWED" description="Not Allowed" parentTypeId=""/>
|
||||
|
||||
|
||||
<StatusType description="Example" statusTypeId="EXAMPLE_STATUS" hasTable="N" parentTypeId=""/>
|
||||
<StatusItem description="In Design" sequenceId="01" statusCode="IN_DESIGN" statusId="EXST_IN_DESIGN" statusTypeId="EXAMPLE_STATUS"/>
|
||||
<StatusItem description="Defined" sequenceId="02" statusCode="DEFINED" statusId="EXST_DEFINED" statusTypeId="EXAMPLE_STATUS"/>
|
||||
@@ -45,7 +45,7 @@ under the License.
|
||||
<StatusValidChange condition="" statusId="EXST_APPROVED" statusIdTo="EXST_CANCELLED" transitionName="Cancel Example"/>
|
||||
<StatusValidChange condition="" statusId="EXST_IMPLEMENTED" statusIdTo="EXST_CANCELLED" transitionName="Cancel Example"/>
|
||||
<StatusValidChange condition="" statusId="EXST_TESTED" statusIdTo="EXST_CANCELLED" transitionName="Cancel Example"/>
|
||||
|
||||
|
||||
<EnumerationType description="Example Feature Source" enumTypeId="EXMPL_FEAT_SOURCE" hasTable="N" parentTypeId=""/>
|
||||
<Enumeration description="Customer" enumCode="CUSTOMER" enumId="EXFTSRC_CUSTOMER" sequenceId="01" enumTypeId="EXMPL_FEAT_SOURCE"/>
|
||||
<Enumeration description="Partner" enumCode="PARTNER" enumId="EXFTSRC_PARTNER" sequenceId="02" enumTypeId="EXMPL_FEAT_SOURCE"/>
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
# 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
|
||||
@@ -17,5 +17,5 @@
|
||||
# under the License.
|
||||
#####################################################################
|
||||
|
||||
Place all DTDs / schemas which need to be included on the classpath here.
|
||||
Place all DTDs / schemas which need to be included on the classpath here.
|
||||
All files located in this directory will be placed in the root of the built jar.
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
# 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
|
||||
@@ -17,7 +17,7 @@
|
||||
# under the License.
|
||||
#####################################################################
|
||||
|
||||
Entity model, Entity ECA, and Entity group definitions.
|
||||
Entity model, Entity ECA, and Entity group definitions.
|
||||
Usually in the format of:
|
||||
|
||||
entitymodel.xml
|
||||
|
||||
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entitymodel.xsd">
|
||||
<!-- ========================================================= -->
|
||||
<!-- ======================== Defaults ======================= -->
|
||||
@@ -28,18 +28,18 @@ under the License.
|
||||
<copyright>Copyright 2001-2008 The Apache Software Foundation</copyright>
|
||||
<author>None</author>
|
||||
<version>1.0</version>
|
||||
|
||||
|
||||
<!-- ========================================================= -->
|
||||
<!-- ======================== Data Model ===================== -->
|
||||
<!-- The modules in this file are as follows: -->
|
||||
<!-- - org.ofbiz.example.example -->
|
||||
<!-- - org.ofbiz.example.feature -->
|
||||
<!-- ========================================================= -->
|
||||
|
||||
|
||||
<!-- ========================================================= -->
|
||||
<!-- org.ofbiz.example.example -->
|
||||
<!-- ========================================================= -->
|
||||
|
||||
|
||||
<entity entity-name="Example"
|
||||
package-name="org.ofbiz.example.example"
|
||||
default-resource-name="ExampleEntityLabels"
|
||||
@@ -110,8 +110,8 @@ under the License.
|
||||
<key-map field-name="exampleId"/>
|
||||
</view-link>
|
||||
</view-entity>
|
||||
<entity entity-name="ExampleType"
|
||||
package-name="org.ofbiz.example.example"
|
||||
<entity entity-name="ExampleType"
|
||||
package-name="org.ofbiz.example.example"
|
||||
default-resource-name="ExampleEntityLabels"
|
||||
title="Example Type Entity">
|
||||
<field name="exampleTypeId" type="id-ne"></field>
|
||||
@@ -126,7 +126,7 @@ under the License.
|
||||
<!-- ========================================================= -->
|
||||
<!-- org.ofbiz.example.feature -->
|
||||
<!-- ========================================================= -->
|
||||
|
||||
|
||||
<entity entity-name="ExampleFeature"
|
||||
package-name="org.ofbiz.example.feature"
|
||||
title="Example Feature Entity" default-resource-name="ExampleEntityLabels">
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
# 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
|
||||
|
||||
@@ -38,7 +38,7 @@ under the License.
|
||||
<entity-resource type="data" reader-name="seed" loader="main" location="data/ExampleSecurityData.xml"/>
|
||||
<entity-resource type="data" reader-name="seed" loader="main" location="data/ExamplePortletData.xml"/>
|
||||
<entity-resource type="data" reader-name="seed" loader="main" location="data/ExamplePortalSeedData.xml"/>
|
||||
|
||||
|
||||
<!-- service resources: model(s), eca(s) and group definitions -->
|
||||
<service-resource type="model" loader="main" location="servicedef/services.xml"/>
|
||||
<!--
|
||||
|
||||
@@ -20,7 +20,7 @@ under the License.
|
||||
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
|
||||
|
||||
|
||||
<simple-method method-name="exampleGenericPermission" short-description="Main permission logic">
|
||||
<set field="mainAction" from-field="parameters.mainAction"/>
|
||||
<if-empty field="mainAction">
|
||||
|
||||
@@ -18,12 +18,12 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
|
||||
<!-- ExampleStatus methods -->
|
||||
<simple-method method-name="createExampleStatus" short-description="create a ExampleItem">
|
||||
<now-timestamp field="nowTimestamp"/>
|
||||
|
||||
|
||||
<!-- find the most recent status record and set the statusEndDate -->
|
||||
<entity-and entity-name="ExampleStatus" list="oldExampleStatusList">
|
||||
<field-map field-name="exampleId" from-field="parameters.exampleId"/>
|
||||
@@ -39,9 +39,9 @@ under the License.
|
||||
<set-pk-fields map="parameters" value-field="newEntity"/>
|
||||
<set-nonpk-fields map="parameters" value-field="newEntity"/>
|
||||
<set field="newEntity.statusDate" from-field="nowTimestamp"/>
|
||||
<create-value value-field="newEntity"/>
|
||||
</simple-method>
|
||||
|
||||
<create-value value-field="newEntity"/>
|
||||
</simple-method>
|
||||
|
||||
<!-- Example ServiceTest Service -->
|
||||
<simple-method method-name="testCreateExampleService" short-description="test the create example service" login-required="false">
|
||||
<set field="createExampleMap.exampleTypeId" value="CONTRIVED"/>
|
||||
@@ -57,7 +57,7 @@ under the License.
|
||||
</call-service>
|
||||
|
||||
<entity-one entity-name="Example" value-field="example"/>
|
||||
|
||||
|
||||
<assert>
|
||||
<not><if-empty field="example"/></not>
|
||||
<if-compare-field field="example.exampleTypeId" to-field="createExampleMap.exampleTypeId" operator="equals"/>
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
# 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
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
# 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
|
||||
|
||||
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
||||
<description>Example Services</description>
|
||||
<vendor>OFBiz</vendor>
|
||||
@@ -55,7 +55,7 @@ under the License.
|
||||
<exclude field-name="statusEndDate"/>
|
||||
</auto-attributes>
|
||||
</service>
|
||||
|
||||
|
||||
<service name="createExampleItem" default-entity-name="ExampleItem" engine="entity-auto" invoke="create" auth="true">
|
||||
<description>Create a ExampleItem</description>
|
||||
<permission-service service-name="exampleGenericPermission" main-action="CREATE"/>
|
||||
@@ -115,7 +115,7 @@ under the License.
|
||||
<auto-attributes include="pk" mode="IN" optional="false"/>
|
||||
</service>
|
||||
|
||||
<!-- Permission Services -->
|
||||
<!-- Permission Services -->
|
||||
<service name="exampleGenericPermission" engine="simple"
|
||||
location="component://example/script/org/ofbiz/example/ExamplePermissionServices.xml" invoke="exampleGenericPermission">
|
||||
<implements service="permissionInterface"/>
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
# 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
|
||||
@@ -17,4 +17,4 @@
|
||||
# under the License.
|
||||
#####################################################################
|
||||
|
||||
All source code related to the component.
|
||||
All source code related to the component.
|
||||
@@ -23,11 +23,11 @@ under the License.
|
||||
<li>
|
||||
<h2>${uiLabelMap.ExampleApplication}</h2>
|
||||
<ul>
|
||||
<#if userLogin?has_content>
|
||||
<#if userLogin?has_content>
|
||||
<li <#if selected = "${uiLabelMap.ExampleExample}"> class="selected"</#if>><a href="<@ofbizUrl>FindExample?portalPageId=${uiLabelMap.ExampleExample}</@ofbizUrl>">${uiLabelMap.ExampleExample}</a></li>
|
||||
<li <#if selected = "${uiLabelMap.ExampleFeature}"> class="selected"</#if>><a href="<@ofbizUrl>FindExampleFeature?portalPageId=${uiLabelMap.ExampleFeature}</@ofbizUrl>">${uiLabelMap.ExampleFeature}</a></li>
|
||||
<li <#if selected = "${uiLabelMap.ExampleFormWidgetExamples}"> class="selected"</#if>><a href="<@ofbizUrl>FormWidgetExamples?portalPageId=${uiLabelMap.ExampleFormWidgetExamples}</@ofbizUrl>">${uiLabelMap.ExampleFormWidgetExamples}</a></li>
|
||||
<li <#if selected = "${uiLabelMap.ExampleAjaxExamples}"> class="selected"</#if>><a href="<@ofbizUrl>authview/findExampleAjax?portalPageId=${uiLabelMap.ExampleAjaxExamples}</@ofbizUrl>">${uiLabelMap.ExampleAjaxExamples}</a></li>
|
||||
<li <#if selected = "${uiLabelMap.ExampleAjaxExamples}"> class="selected"</#if>><a href="<@ofbizUrl>authview/findExampleAjax?portalPageId=${uiLabelMap.ExampleAjaxExamples}</@ofbizUrl>">${uiLabelMap.ExampleAjaxExamples}</a></li>
|
||||
<#if portalPages?has_content>
|
||||
<#list portalPages as page>
|
||||
<#if page.portalPageName?has_content>
|
||||
|
||||
+2
-2
@@ -6,9 +6,9 @@
|
||||
* 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
|
||||
|
||||
@@ -18,14 +18,14 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd">
|
||||
<!-- The controller elements that are common to all OFBiz components
|
||||
can be found in the following xml file. A component can override the
|
||||
elements found in the common-controller.xml file. -->
|
||||
<include location="component://common/webcommon/WEB-INF/common-controller.xml"/>
|
||||
<include location="component://common/webcommon/WEB-INF/portal-controller.xml"/>
|
||||
|
||||
<include location="component://common/webcommon/WEB-INF/common-controller.xml"/>
|
||||
<include location="component://common/webcommon/WEB-INF/portal-controller.xml"/>
|
||||
|
||||
<description>Example Component Site Configuration File</description>
|
||||
<owner>Copyright 2001-2008 The Apache Software Foundation</owner>
|
||||
|
||||
@@ -85,7 +85,7 @@ under the License.
|
||||
<response name="success" type="view" value="findExampleAjax"/>
|
||||
<response name="error" type="view" value="findExampleAjax"/>
|
||||
</request-map>
|
||||
|
||||
|
||||
<request-map uri="EditExampleItems"><security https="true" auth="true"/><response name="success" type="view" value="EditExampleItems"/></request-map>
|
||||
<request-map uri="createExampleItem">
|
||||
<security https="true" auth="true"/>
|
||||
@@ -157,7 +157,7 @@ under the License.
|
||||
</response>
|
||||
<response name="error" type="view" value="EditExampleFeature"/>
|
||||
</request-map>
|
||||
|
||||
|
||||
<request-map uri="EditExampleFeatureExampleAppls"><security https="true" auth="true"/><response name="success" type="view" value="EditExampleFeatureExampleAppls"/></request-map>
|
||||
<request-map uri="feature_createExampleFeatureAppl">
|
||||
<security https="true" auth="true"/>
|
||||
@@ -197,7 +197,7 @@ under the License.
|
||||
<request-map uri="ListExampleFormOnly"><security https="true" auth="false"/><response name="success" type="view" value="ListExampleFormOnly"/></request-map>
|
||||
<request-map uri="CreateExampleFormOnly"><security https="true" auth="false"/><response name="success" type="view" value="CreateExampleFormOnly"/></request-map>
|
||||
<request-map uri="dashboardExample"><security https="true" auth="false"/><response name="success" type="view" value="dashboardExample"/></request-map>
|
||||
|
||||
|
||||
<request-map uri="printExampleFOPFonts">
|
||||
<security https="true" auth="true"/>
|
||||
<response name="success" type="view" value="printExampleFOPFonts"/>
|
||||
@@ -214,7 +214,7 @@ under the License.
|
||||
<view-map name="EditExampleFeatureAppls" type="screen" page="component://example/widget/example/ExampleScreens.xml#EditExampleFeatureAppls"/>
|
||||
<view-map name="ExampleReportHtml" type="screen" page="component://example/widget/example/ExampleScreens.xml#ExampleReport"/>
|
||||
<view-map name="ExampleReportPdf" type="screenfop" page="component://example/widget/example/ExampleScreens.xml#ExampleReport" content-type="application/pdf" encoding="none"/>
|
||||
|
||||
|
||||
<view-map name="FindExampleFeature" type="screen" page="component://example/widget/example/ExampleFeatureScreens.xml#FindExampleFeature"/>
|
||||
<view-map name="EditExampleFeature" type="screen" page="component://example/widget/example/ExampleFeatureScreens.xml#EditExampleFeature"/>
|
||||
<view-map name="EditExampleFeatureExampleAppls" type="screen" page="component://example/widget/example/ExampleFeatureScreens.xml#EditExampleFeatureExampleAppls"/>
|
||||
|
||||
@@ -22,7 +22,7 @@ under the License.
|
||||
<web-app>
|
||||
<display-name>Open For Business - Example Component</display-name>
|
||||
<description>Example Component of the Open For Business Project</description>
|
||||
|
||||
|
||||
<context-param>
|
||||
<param-name>webSiteId</param-name>
|
||||
<param-value>EXAMPLE</param-value>
|
||||
@@ -31,7 +31,7 @@ under the License.
|
||||
<context-param>
|
||||
<param-name>localDispatcherName</param-name><param-value>example</param-value>
|
||||
<description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description>
|
||||
</context-param>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>entityDelegatorName</param-name><param-value>default</param-value>
|
||||
<description>The Name of the Entity Delegator to use, defined in entityengine.xml</description>
|
||||
@@ -51,7 +51,7 @@ under the License.
|
||||
<param-value>false</param-value>
|
||||
<description>Remove unnecessary whitespace from HTML output.</description>
|
||||
</context-param>
|
||||
|
||||
|
||||
<filter>
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<display-name>ContextFilter</display-name>
|
||||
@@ -62,15 +62,15 @@ under the License.
|
||||
<param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css</param-value>
|
||||
</init-param>
|
||||
<init-param><param-name>errorCode</param-name><param-value>403</param-value></init-param>
|
||||
<init-param><param-name>redirectPath</param-name><param-value>/control/main</param-value></init-param>
|
||||
<init-param><param-name>redirectPath</param-name><param-value>/control/main</param-value></init-param>
|
||||
</filter>
|
||||
<filter-mapping><filter-name>ContextFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping>
|
||||
<filter-mapping><filter-name>ContextFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping>
|
||||
|
||||
<listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
<!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface -->
|
||||
<!-- <listener><listener-class>org.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> -->
|
||||
|
||||
|
||||
<servlet>
|
||||
<servlet-name>ControlServlet</servlet-name>
|
||||
<display-name>ControlServlet</display-name>
|
||||
|
||||
@@ -32,12 +32,12 @@ under the License.
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" height="200">
|
||||
<tr bgcolor="#CC6666">
|
||||
<td height="45">
|
||||
<tr bgcolor="#CC6666">
|
||||
<td height="45">
|
||||
<div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" color="#FFFFFF"><b>:ERROR MESSAGE:</b></font></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><%=UtilFormatOut.replaceString(errorMsg, "\n", "<br/>")%></font></div>
|
||||
</td>
|
||||
|
||||
@@ -36,7 +36,7 @@ under the License.
|
||||
<fo:block font-family="Helvetica" font-style="normal" font-weight="bold">the quick brown fox jumps over the lazy dog 1234657890</fo:block>
|
||||
<fo:block font-family="Helvetica" font-style="italic" font-weight="bold">the quick brown fox jumps over the lazy dog 1234657890</fo:block>
|
||||
<fo:block font-family="Helvetica" font-style="italic" font-weight="normal">the quick brown fox jumps over the lazy dog 1234657890</fo:block>
|
||||
<fo:block color="red">Times</fo:block>
|
||||
<fo:block color="red">Times</fo:block>
|
||||
<fo:block font-family="Times" font-style="normal" font-weight="normal">the quick brown fox jumps over the lazy dog 1234657890</fo:block>
|
||||
<fo:block font-family="Times" font-style="normal" font-weight="bold">the quick brown fox jumps over the lazy dog 1234657890</fo:block>
|
||||
<fo:block font-family="Times" font-style="italic" font-weight="bold">the quick brown fox jumps over the lazy dog 1234657890</fo:block>
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
# 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
|
||||
|
||||
@@ -18,22 +18,22 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<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>
|
||||
<!-- base/top/specific map first, then more common map added for shared labels -->
|
||||
<!-- base/top/specific map first, then more common map added for shared labels -->
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
|
||||
|
||||
<set field="layoutSettings.companyName" from-field="uiLabelMap.ExampleCompanyName" global="true"/>
|
||||
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.ExampleCompanySubtitle" global="true"/>
|
||||
<!-- layoutSettings.headerImageUrl can be used to specify an application specific logo; if not set,
|
||||
then the global layoutSettings.commonHeaderImageUrl (specified in GlobalDecorator) will be used. -->
|
||||
<!--<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.jpg" global="true"/>-->
|
||||
|
||||
|
||||
<!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
|
||||
<!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
|
||||
<!-- TODO: Use transform to specify component URI -->
|
||||
@@ -115,7 +115,7 @@ under the License.
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.ExampleViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
@@ -172,7 +172,7 @@ under the License.
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.ExampleViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
|
||||
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="FindExampleFeatures" type="single" target="FindExampleFeature" default-entity-name="ExampleFeature">
|
||||
@@ -136,7 +136,7 @@ under the License.
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"/>
|
||||
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
||||
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonLookup}"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
@@ -153,7 +153,7 @@ under the License.
|
||||
<field name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}" widget-style="buttontext">
|
||||
<hyperlink description="${exampleFeatureId}" also-hidden="false" target-type="plain" target="javascript:set_value('${exampleFeatureId}')"/>
|
||||
</field>
|
||||
<field name="featureSourceEnumId" title="${uiLabelMap.ExampleFeatureSource}">
|
||||
<field name="featureSourceEnumId" title="${uiLabelMap.ExampleFeatureSource}">
|
||||
<display-entity entity-name="Enumeration" key-field-name="enumId" description="${description} [${enumCode}]" also-hidden="false"/>
|
||||
</field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"><display also-hidden="false"/></field>
|
||||
|
||||
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
|
||||
<!-- list all examplefeatures in a tabular format -->
|
||||
@@ -58,7 +58,7 @@ under the License.
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
|
||||
<screen name="EditExampleFeature">
|
||||
<section>
|
||||
<actions>
|
||||
@@ -102,7 +102,7 @@ under the License.
|
||||
</condition>
|
||||
<actions>
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<set field="title" value="${uiLabelMap.PageTitleLookupExampleFeature}"/>
|
||||
<set field="title" value="${uiLabelMap.PageTitleLookupExampleFeature}"/>
|
||||
<set field="queryString" from-field="result.queryString"/>
|
||||
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
||||
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="10"/>
|
||||
|
||||
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="FindExamples" type="single" target="FindExample" default-entity-name="Example">
|
||||
@@ -66,7 +66,7 @@ under the License.
|
||||
</form>
|
||||
|
||||
<!-- Typically, this extended form wouldn't be necessary. The parent form (ListExamples) would
|
||||
have these attributes.
|
||||
have these attributes.
|
||||
For the Ajax example we want all example entities listed, so the we use the entity-condition
|
||||
instead of the performFind service. -->
|
||||
<form name="ListExamplesAjax" extends="ListExamples" type="list" paginate-target="authview/findExampleAjax">
|
||||
@@ -205,7 +205,7 @@ under the License.
|
||||
</field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
|
||||
<!-- ExampleFeatureAppl -->
|
||||
<form name="ListExampleFeatureAppls" type="list" list-name="exampleFeatureAppls" target="example_updateExampleFeatureAppl">
|
||||
<actions>
|
||||
@@ -244,7 +244,7 @@ under the License.
|
||||
<form name="AddExampleFeatureAppl" type="single" target="example_createExampleFeatureAppl" title="">
|
||||
<auto-fields-service service-name="createExampleFeatureAppl"/>
|
||||
<field name="exampleId"><hidden/></field>
|
||||
|
||||
|
||||
<!-- a nice combination of the lookup option and the auto-complete, but unfortunately still requires a custom companion controller.xml request to handle AJAX data retreival -->
|
||||
<field name="exampleFeatureId" title="${uiLabelMap.ExampleFeature}">
|
||||
<lookup target-form-name="LookupExampleFeature"/>
|
||||
@@ -268,7 +268,7 @@ under the License.
|
||||
</drop-down>
|
||||
</field>
|
||||
-->
|
||||
|
||||
|
||||
<field name="exampleFeatureApplTypeId" title="${uiLabelMap.CommonType}">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="ExampleFeatureApplType" description="${description}">
|
||||
|
||||
@@ -18,8 +18,8 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
<menu name="ExampleAppBar" title="${uiLabelMap.ExampleApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="Example" title="${uiLabelMap.ExampleExample}"><link target="FindExample"/></menu-item>
|
||||
<menu-item name="ExampleFeature" title="${uiLabelMap.ExampleFeature}"><link target="FindExampleFeature"/></menu-item>
|
||||
|
||||
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
|
||||
<!-- list all examples in a tabular format -->
|
||||
@@ -58,7 +58,7 @@ under the License.
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
|
||||
<screen name="EditExample">
|
||||
<section>
|
||||
<actions>
|
||||
@@ -148,5 +148,5 @@ under the License.
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
|
||||
</screens>
|
||||
|
||||
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="DateTimeFieldsExampleForm" type="single" title="">
|
||||
@@ -223,12 +223,12 @@ under the License.
|
||||
</drop-down>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
|
||||
<!-- Simple form to print a FOP PDF file with the fonts available in OFBiz Project -->
|
||||
<form name="FOPFontsExampleForm" type="single" target="printExampleFOPFonts">
|
||||
<field name="printButton" title="${uiLabelMap.ExamplePrintButton}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
|
||||
<form name="FieldGroupExampleForm" type="single" title="">
|
||||
<field name="field1" title="${uiLabelMap.ExampleField} 1"><text/></field>
|
||||
<field name="field2" title="${uiLabelMap.ExampleField} 2"><text/></field>
|
||||
|
||||
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
|
||||
<screen name="FormWidgetExamples">
|
||||
|
||||
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="ExamplePortlet1Edit" extends="CommonPortletEdit" extends-resource="component://common/widget/PortletEditForms.xml">
|
||||
|
||||
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
|
||||
<screen name="ExamplePortlet1">
|
||||
|
||||
Reference in New Issue
Block a user