Author: jleroux
Date: Sat Feb 6 18:37:46 2010
New Revision: 907270
URL: http://svn.apache.org/viewvc?rev=907270&view=rev
Log:
Begin to fix things a bit in the example component (related to the layered
popups effort)
* consistent names and actions (lookup by Id is not by Name)
* introduces a layered popup for the features
* continue to use height and width as demonstration but with appropriate values
Modified:
ofbiz/trunk/framework/example/webapp/example/WEB-INF/controller.xml
ofbiz/trunk/framework/example/widget/example/ExampleFeatureScreens.xml
ofbiz/trunk/framework/example/widget/example/ExampleForms.xml
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupForms.xml
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupScreens.xml
Modified: ofbiz/trunk/framework/example/webapp/example/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/webapp/example/WEB-INF/controller.xml?rev=907270&r1=907269&r2=907270&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/webapp/example/WEB-INF/controller.xml
(original)
+++ ofbiz/trunk/framework/example/webapp/example/WEB-INF/controller.xml Sat Feb
6 18:37:46 2010
@@ -193,8 +193,8 @@
<request-map uri="FormWidgetExamples"><security https="true"
auth="true"/><response name="success" type="view"
value="FormWidgetExamples"/></request-map>
<request-map uri="LookupExampleFeature"><security https="true"
auth="true"/><response name="success" type="view"
value="LookupExampleFeature"/></request-map>
- <request-map uri="LookupPartyNameExamplePopup"><security https="true"
auth="true"/><response name="success" type="view"
value="LookupPartyNameExamplePopup"/></request-map>
- <request-map uri="LookupPartyNameExamplePopupByName"><security
https="true" auth="true"/><response name="success" type="view"
value="LookupPartyNameExamplePopupByName"/></request-map>
+ <request-map uri="LookupPartyExamplePopup"><security https="true"
auth="true"/><response name="success" type="view"
value="LookupPartyExamplePopup"/></request-map>
+ <request-map uri="LookupPartyExamplePopupByName"><security https="true"
auth="true"/><response name="success" type="view"
value="LookupPartyExamplePopupByName"/></request-map>
<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>
@@ -257,8 +257,8 @@
<view-map name="FormWidgetExamples" type="screen"
page="component://example/widget/example/FormWidgetExampleScreens.xml#FormWidgetExamples"/>
<view-map name="LookupExampleFeature" type="screen"
page="component://example/widget/example/ExampleFeatureScreens.xml#LookupExampleFeature"/>
- <view-map name="LookupPartyNameExamplePopup" type="screen"
page="component://example/widget/example/FormWidgetExampleLookupScreens.xml#LookupPartyName"/>
- <view-map name="LookupPartyNameExamplePopupByName" type="screen"
page="component://example/widget/example/FormWidgetExampleLookupScreens.xml#LookupPartyNameByName"/>
+ <view-map name="LookupPartyExamplePopup" type="screen"
page="component://example/widget/example/FormWidgetExampleLookupScreens.xml#LookupParty"/>
+ <view-map name="LookupPartyExamplePopupByName" type="screen"
page="component://example/widget/example/FormWidgetExampleLookupScreens.xml#LookupPartyByName"/>
<!-- ajax view mappings -->
<view-map name="findExampleAjax" type="screen"
page="component://example/widget/example/ExampleAjaxScreens.xml#AjaxExample"/>
Modified: ofbiz/trunk/framework/example/widget/example/ExampleFeatureScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/ExampleFeatureScreens.xml?rev=907270&r1=907269&r2=907270&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/ExampleFeatureScreens.xml
(original)
+++ ofbiz/trunk/framework/example/widget/example/ExampleFeatureScreens.xml Sat
Feb 6 18:37:46 2010
@@ -109,7 +109,7 @@
</actions>
<widgets>
- <decorator-screen name="LookupDecorator"
location="component://common/widget/CommonScreens.xml">
+ <decorator-screen name="LookupLayerPopupDecorator"
location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="LookupFindExampleFeature"
location="component://example/widget/example/ExampleFeatureForms.xml"/>
</decorator-section>
Modified: ofbiz/trunk/framework/example/widget/example/ExampleForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/ExampleForms.xml?rev=907270&r1=907269&r2=907270&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/ExampleForms.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/ExampleForms.xml Sat Feb 6
18:37:46 2010
@@ -239,7 +239,7 @@
<!-- 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"/>
+ <lookup presentation="layer" position="center"
target-form-name="LookupExampleFeature"/>
<on-field-event-update-area event-type="change"
area-id="AddExampleFeatureAppl_exampleFeatureId"
area-target="findExampleFeatures"/>
</field>
<!-- basic example of server-side AJAX enabled option, requires use of
custom companion request in controller.xml file to get data for drop-down -->
Modified:
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml?rev=907270&r1=907269&r2=907270&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml
(original)
+++ ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml Sat
Feb 6 18:37:46 2010
@@ -282,8 +282,8 @@
<!-- Lookup Layer Example -->
<form name="ExampleLookupFields" type="single" title="">
- <field name="partyIdFrom" position="1"
title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonFrom}"><lookup
target-form-name="LookupPartyNameExamplePopup"
description-field-name="LookupPartyNameExamplePopup" presentation="layer"
position="normal"/></field>
- <field name="partyIdTo" position="2"
title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonTo}"><lookup
target-form-name="LookupPartyNameExamplePopupByName" presentation="layer"
position="center" height="580px" width="450px"/></field>
+ <field name="partyIdFrom" position="1"
title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonFrom}"><lookup
target-form-name="LookupPartyExamplePopup" presentation="layer"
position="normal"/></field>
+ <field name="partyIdTo" position="2"
title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonTo}"><lookup
target-form-name="LookupPartyExamplePopupByName" presentation="layer"
position="center" height="500px" width="600px"/></field>
</form>
<form name="SelectionBoxesExampleForm" type="single">
Modified:
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupForms.xml?rev=907270&r1=907269&r2=907270&view=diff
==============================================================================
---
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupForms.xml
(original)
+++
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupForms.xml
Sat Feb 6 18:37:46 2010
@@ -21,7 +21,7 @@
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
- <form name="lookupPartyName" target="LookupPartyNameExamplePopup"
type="single"
+ <form name="lookupPartyName" target="LookupPartyExamplePopup" type="single"
header-row-style="header-row" default-table-style="basic-table">
<!--<auto-fields-entity entity-name="PartyNameView"
default-field-type="find"/>-->
<field name="partyId"
title="${uiLabelMap.PartyPartyId}"><text-find/></field>
@@ -57,7 +57,7 @@
</form>
<!-- Lookup By Name -->
- <form name="lookupPartyNameByName"
target="LookupPartyNameExamplePopupByName" type="single"
+ <form name="lookupPartyNameByName" target="LookupPartyExamplePopupByName"
type="single"
header-row-style="header-row" default-table-style="basic-table">
<!--<auto-fields-entity entity-name="PartyNameView"
default-field-type="find"/>-->
<field name="partyId"
title="${uiLabelMap.PartyPartyId}"><text-find/></field>
Modified:
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupScreens.xml?rev=907270&r1=907269&r2=907270&view=diff
==============================================================================
---
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupScreens.xml
(original)
+++
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleLookupScreens.xml
Sat Feb 6 18:37:46 2010
@@ -20,14 +20,14 @@
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
- <screen name="LookupPartyName">
+ <screen name="LookupParty">
<section>
<condition>
<if-service-permission service-name="partyBasePermissionCheck"
main-action="VIEW"/>
</condition>
<actions>
<property-map resource="PartyUiLabels" map-name="uiLabelMap"
global="true"/>
- <set field="title"
value="${uiLabelMap.PartyLookupPartyByName}"/>
+ <set field="title" value="${uiLabelMap.PartyLookupParty}"/>
<set field="queryString" from-field="result.queryString"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX"
type="Integer" default-value="0"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE"
type="Integer" default-value="20"/>
@@ -60,7 +60,7 @@
</section>
</screen>
- <screen name="LookupPartyNameByName">
+ <screen name="LookupPartyByName">
<section>
<condition>
<if-service-permission service-name="partyBasePermissionCheck"
main-action="VIEW"/>