svn commit: r427113 - in /incubator/ofbiz/trunk/applications/party: webapp/partymgr/party/PartyForms.xml widget/partymgr/PartyScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r427113 - in /incubator/ofbiz/trunk/applications/party: webapp/partymgr/party/PartyForms.xml widget/partymgr/PartyScreens.xml

jacopoc
Author: jacopoc
Date: Mon Jul 31 06:24:35 2006
New Revision: 427113

URL: http://svn.apache.org/viewvc?rev=427113&view=rev
Log:
Implemented default country selection for "NewCustomer" screen.

Modified:
    incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml
    incubator/ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml

Modified: incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml?rev=427113&r1=427112&r2=427113&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml (original)
+++ incubator/ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml Mon Jul 31 06:24:35 2006
@@ -273,7 +273,7 @@
         </field>
         <field name="USER_POSTAL_CODE" title="${uiLabelMap.CommonZipPostalCode}" tooltip="*" title-style="tabletext"><text size="10" maxlength="30"/></field>
         <field name="USER_COUNTRY" title="${uiLabelMap.CommonCountry}" tooltip="*" title-style="tabletext">
-            <drop-down allow-empty="false">
+            <drop-down allow-empty="false" no-current-selected-key="${defaultCountryGeoId}">
                 <entity-options entity-name="Geo" key-field-name="geoId" description="${geoId}: ${geoName}">
                     <entity-constraint name="geoTypeId" value="COUNTRY"/>
                     <entity-order-by field-name="geoId"/>

Modified: incubator/ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml?rev=427113&r1=427112&r2=427113&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml (original)
+++ incubator/ofbiz/trunk/applications/party/widget/partymgr/PartyScreens.xml Mon Jul 31 06:24:35 2006
@@ -555,6 +555,7 @@
                 <set field="headerItem" value="create"/>
                 <set field="target" value="createCustomer"/>
                 <set field="previousParams" from-field="sessionAttributes._PREVIOUS_PARAMS_"/>
+                <property-to-field field="defaultCountryGeoId" resource="general" property="country.geo.id.default" default="USA"/>
             </actions>
             <widgets>
                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">