Author: jacopoc
Date: Mon Jul 31 06:24:35 2006
New Revision: 427113
URL: 
http://svn.apache.org/viewvc?rev=427113&view=revLog:
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}">