svn commit: r740630 - in /ofbiz/trunk/specialpurpose/myportal: data/ script/org/ofbiz/myportal/ webapp/myportal/WEB-INF/ widget/

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

svn commit: r740630 - in /ofbiz/trunk/specialpurpose/myportal: data/ script/org/ofbiz/myportal/ webapp/myportal/WEB-INF/ widget/

hansbak-2
Author: hansbak
Date: Wed Feb  4 06:47:16 2009
New Revision: 740630

URL: http://svn.apache.org/viewvc?rev=740630&view=rev
Log:
registration in myportal now requests a email address and sends a confirmation email

Modified:
    ofbiz/trunk/specialpurpose/myportal/data/MyPortalDemoData.xml
    ofbiz/trunk/specialpurpose/myportal/script/org/ofbiz/myportal/Events.xml
    ofbiz/trunk/specialpurpose/myportal/webapp/myportal/WEB-INF/controller.xml
    ofbiz/trunk/specialpurpose/myportal/webapp/myportal/WEB-INF/web.xml
    ofbiz/trunk/specialpurpose/myportal/widget/CommonScreens.xml
    ofbiz/trunk/specialpurpose/myportal/widget/MyPortalForms.xml
    ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml

Modified: ofbiz/trunk/specialpurpose/myportal/data/MyPortalDemoData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/data/MyPortalDemoData.xml?rev=740630&r1=740629&r2=740630&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/myportal/data/MyPortalDemoData.xml (original)
+++ ofbiz/trunk/specialpurpose/myportal/data/MyPortalDemoData.xml Wed Feb  4 06:47:16 2009
@@ -56,4 +56,13 @@
     <ProductStoreEmailSetting productStoreId="9000" emailType="PRDS_CUST_CONFIRM" bodyScreenLocation="component://myportal/widget/MyPortalScreens.xml#CompletedCustRequestNotification" subject="OFBiz - Your Request Is Complete[${custRequestId}]" fromAddress="[hidden email]"/>
     <ProductStoreEmailSetting productStoreId="9000" emailType="PRDS_CUST_CREATED" bodyScreenLocation="component://myportal/widget/MyPortalScreens.xml#CreateCustRequestNotification" subject="OFBiz - Your Request Is Created[${custRequestId}]" fromAddress="[hidden email]"/>
 
+    <ProductStore productStoreId="MYPORTAL" storeName="Myportal" manualAuthIsCapture="N" prorateShipping="Y" prorateTaxes="Y" viewCartOnAdd="N" autoSaveCart="N" autoApproveReviews="N" isDemoStore="Y" isImmediatelyFulfilled="N" oneInventoryFacility="Y" checkInventory="Y" reserveInventory="Y"
+        requireInventory="N" balanceResOnOrderCreation="N" defaultCurrencyUomId="USD" allowPassword="Y" explodeOrderItems="N" checkGcBalance="N" retryFailedAuths="Y" headerApprovedStatus="ORDER_APPROVED" itemApprovedStatus="ITEM_APPROVED" digitalItemApprovedStatus="ITEM_APPROVED"
+        headerDeclinedStatus="ORDER_REJECTED" itemDeclinedStatus="ITEM_REJECTED" headerCancelStatus="ORDER_CANCELLED" itemCancelStatus="ITEM_CANCELLED" usePrimaryEmailUsername="N" requireCustomerRole="N" autoInvoiceDigitalItems="Y" reqShipAddrForDigItems="Y" showCheckoutGiftOptions="Y"
+        selectPaymentTypePerItem="N" showPricesWithVatTax="N" showTaxIsExempt="Y" enableAutoSuggestionList="N" enableDigProdUpload="N" prodSearchExcludeVariants="Y" autoOrderCcTryExp="Y" autoOrderCcTryOtherCards="Y" autoOrderCcTryLaterNsf="Y" autoApproveInvoice="Y" autoApproveOrder="Y"
+        shipIfCaptureFails="Y" addToCartRemoveIncompat="Y" addToCartReplaceUpsell="Y" splitPayPrefPerShpGrp="Y" />
+    
+    <ProductStoreEmailSetting productStoreId="MYPORTAL" emailType="PRDS_CUST_REGISTER" bodyScreenLocation="component://myportal/widget/MyPortalScreens.xml#CreateUserNotification" subject="New Account Created" bccAddress="[hidden email]" fromAddress="[hidden email]"/>
+    
+    <WebSite webSiteId="MYPORTAL" siteName="Myportal website" productStoreId="MYPORTAL" allowProductStoreChange="Y"/>    
 </entity-engine-xml>

Modified: ofbiz/trunk/specialpurpose/myportal/script/org/ofbiz/myportal/Events.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/script/org/ofbiz/myportal/Events.xml?rev=740630&r1=740629&r2=740630&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/myportal/script/org/ofbiz/myportal/Events.xml (original)
+++ ofbiz/trunk/specialpurpose/myportal/script/org/ofbiz/myportal/Events.xml Wed Feb  4 06:47:16 2009
@@ -317,72 +317,93 @@
         <if-empty field="parameters.firstName"><property-to-field field="errorMessage" resource="MyPortalUiLabels" property="FirstName_Missing"/><field-to-list field="errorMessage" list="error_list"/></if-empty>
         <if-empty field="parameters.lastName"><property-to-field field="errorMessage" resource="MyPortalUiLabels" property="LastName_Missing"/><field-to-list field="errorMessage" list="error_list"/></if-empty>
         <if-empty field="parameters.USERNAME"><property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyUserNameMissing"/><field-to-list field="errorMessage" list="error_list"/></if-empty>
-        <if-empty field="parameters.PASSWORD"><property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyPasswordMissing"/><field-to-list field="errorMessage" list="error_list"/></if-empty>
+        <if-empty field="parameters.PASSWORD"><property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyPasswordMissing"/><field-to-list field="errorMessage" list="error_list"/></if-empty>
+        <if-empty field="parameters.USER_EMAIL"><property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyEmailAddressMissing"/><field-to-list field="errorMessage" list="error_list"/></if-empty>
+        <check-errors error-list-name="error_list" error-code="resultPage"/>
+        
+        <!-- set parameter of person to personContext Map -->
+        <set field="personContext.salutation" from-field="parameters.salutation"/>
+        <set field="personContext.firstName" from-field="parameters.firstName"/>
+        <set field="personContext.middleName" from-field="parameters.middleName"/>
+        <set field="personContext.lastName" from-field="parameters.lastName"/>
+        <set field="personContext.comments" from-field="parameters.comments"/>
+        
+        <!-- set parameter of userLogin to userLoginContext Map -->
+        <set field="userLoginContext.userLoginId" from-field="parameters.USERNAME"/>
+        
         <call-bsh><![CDATA[
             parameters.put("captchaCode",org.ofbiz.common.Captcha.ID_KEY);
             ]]></call-bsh>
+        
+        <now-timestamp field="nowStamp"/>
         <call-object-method obj-field="parameters.PASSWORD" method-name="toLowerCase" ret-field="parameters.PASSWORD"/>
-        <call-object-method obj-field="parameters.CONFIRM_PASSWORD" method-name="toLowerCase" ret-field="parameters.CONFIRM_PASSWORD"/>
+        <call-object-method obj-field="parameters.CONFIRM_PASSWORD" method-name="toLowerCase" ret-field="parameters.CONFIRM_PASSWORD"/>  
+        <call-object-method obj-field="parameters.captcha" method-name="toLowerCase" ret-field="parameters.captcha"/>
+        <call-object-method obj-field="parameters.captchaCode" method-name="toLowerCase" ret-field="parameters.captchaCode"/>
         <if-compare field="parameters.PASSWORD" value="${parameters.CONFIRM_PASSWORD}" operator="equals">
-            <call-object-method obj-field="parameters.captcha" method-name="toLowerCase" ret-field="parameters.captcha"/>
-            <call-object-method obj-field="parameters.captchaCode" method-name="toLowerCase" ret-field="parameters.captchaCode"/>
             <if-compare field="parameters.captcha" value="${parameters.captchaCode}" operator="equals">                
-  
-                <!-- Create Person -->
-                <set field="parameters.statusId" value="PARTY_ENABLED"/>
-                <make-value entity-name="Party" value-field="newEntity"/>
-                <set-pk-fields map="parameters" value-field="newEntity"/>
-                <make-next-seq-id value-field="newEntity" seq-field-name="partyId"/>
-                <set field="newEntity.partyTypeId" value="PERSON"/>
-                <set-nonpk-fields map="parameters" value-field="newEntity"/>
-                <create-value value-field="newEntity"/>
-                
-                <make-value entity-name="PartyStatus" value-field="newEntity2"/>
-                <set field="newEntity2.partyId" from-field="newEntity.partyId"/>
-                <set field="newEntity2.statusId" from-field="newEntity.statusId"/>
-                <set field="newEntity2.statusDate" from-field="newEntity.createdStamp"/>
-                <create-value value-field="newEntity2"/>  
                 
-                <make-value entity-name="Person" value-field="newEntity3"/>
-                <set field="newEntity3.partyId" from-field="newEntity.partyId"/>
-                <set-nonpk-fields map="parameters" value-field="newEntity3"/>
-                <create-value value-field="newEntity3"/>                
-                
-                <!-- Create the UserLogin Record -->
-                <call-map-processor in-map-name="parameters" out-map-name="userLoginContext">
-                    <simple-map-processor name="newUserLogin">
-                        <process field="USERNAME"><copy to-field="userLoginId"/></process>
-                        <process field="PASSWORD"><copy to-field="currentPassword"/></process>
-                        <process field="CONFIRM_PASSWORD"><copy to-field="currentPasswordVerify"/></process>
-                        <process field="PASSWORD_HINT"><copy to-field="passwordHint"/></process>
-                    </simple-map-processor>
-                </call-map-processor>
-                <set field="userLoginExistsMap.userLoginId"  from-field="userLoginContext.userLoginId" />
-                <find-by-primary-key entity-name="UserLogin" map="userLoginExistsMap" value-field="existingUserLogin"/>
-                <if-not-empty field="existingUserLogin">
-                    <set field="errorMessage" value="Username in use, please choose another." />
-                    <field-to-list field="errorMessage" list="error_list"/>
-                    <check-errors error-list-name="error_list" error-code="resultPage"/>
+                <!-- Create user login and Person -->
+                <find-by-primary-key entity-name="UserLogin" map="userLoginContext" value-field="existingUserLogin"/>
+                <if-empty field="existingUserLogin">                    
+                    <set field="userLoginContext.currentPassword" from-field="parameters.PASSWORD"/>
+                    <set field="userLoginContext.currentPasswordVerify" from-field="parameters.CONFIRM_PASSWORD"/>
+                    <set-service-fields map="personContext" service-name="createPersonAndUserLogin" to-map="personUserLoginContext"/>
+                    <set-service-fields map="userLoginContext" service-name="createPersonAndUserLogin" to-map="personUserLoginContext"/>
+                    <call-service service-name="createPersonAndUserLogin" in-map-name="personUserLoginContext">
+                        <result-to-field result-name="partyId" field="partyId"/>
+                        <result-to-field field="createdUserLogin" result-name="newUserLogin"/>
+                    </call-service>
+                    <set-current-user-login value-field="createdUserLogin"/>
                     <else>
-                        <make-value entity-name="UserLogin" value-field="newUserLogin"/>
-                        <set field="newUserLogin.userLoginId" from-field="userLoginContext.userLoginId"/>
-                        <set field="newUserLogin.currentPassword" from-field="userLoginContext.currentPassword" />
-                        <set field="newUserLogin.passwordHint" from-field="userLoginContext.passwordHint" />                
-                        <!-- Check the password, etc for validity -->
-                        <call-bsh><![CDATA[
-                            String password = (String) userLoginContext.get("currentPassword");
-                            String confirmPassword = (String) userLoginContext.get("currentPasswordVerify");
-                            String passwordHint = (String) userLoginContext.get("passwordHint");
-                            org.ofbiz.common.login.LoginServices.checkNewPassword(newUserLogin, null, password, confirmPassword, passwordHint, error_list, true, locale);
-                            boolean useEncryption = "true".equals(org.ofbiz.base.util.UtilProperties.getPropertyValue("security", "password.encrypt"));
-                            if (useEncryption) { newUserLogin.set("currentPassword", org.ofbiz.base.crypto.HashCrypt.getDigestHash((String) newUserLogin.get("currentPassword"))); }
-                            ]]></call-bsh>
-                        <set field="newUserLogin.partyId" from-field="newEntity.partyId" />
-                        <create-value value-field="newUserLogin"/>
+                        <set field="errorMessage" value="Username in use, please choose another." />
+                        <field-to-list field="errorMessage" list="error_list"/>
+                        <check-errors error-list-name="error_list" error-code="resultPage"/>
                     </else>
-                </if-not-empty>                
-                <set field="partyId" from-field="newEntity.partyId"/>
+                </if-empty>
+                
+                <!-- create the PartyDataSource entry to track where this info came from... -->
+                <make-value entity-name="PartyDataSource" value-field="partyDataSource"/>
+                <set value="ECOMMERCE_SITE" field="partyDataSource.dataSourceId"/>
+                <set from-field="nowStamp" field="partyDataSource.fromDate"/>
+                <set value="Y" field="partyDataSource.isCreate"/>
+                <set from-field="partyId" field="partyDataSource.partyId"/>
+                <session-to-field field="visit"/>
+                <set from-field="visit.visitId" field="partyDataSource.visitId"/>
+                <create-value value-field="partyDataSource"/>
+                
+                <!-- Create E-mail address -->
+                <set field="emailContext.infoString" from-field="parameters.USER_EMAIL"/>
+                <set field="emailContext.contactMechTypeId" value="EMAIL_ADDRESS"/>
+                <call-service service-name="createContactMech" in-map-name="emailContext">
+                    <result-to-field result-name="contactMechId" field="emailPurposeContext.contactMechId"/>
+                </call-service>
+                <set from-field="partyId" field="emailPurposeContext.partyId"/>
+                <set value="PRIMARY_EMAIL" field="emailPurposeContext.contactMechPurposeTypeId"/>
+                <call-service service-name="createPartyContactMechPurpose" in-map-name="emailPurposeContext"/>
+                
+                <!-- Send e-mail to new create user -->
+                <entity-one entity-name="WebSite" value-field="webSite"/>
+                <set field="storeEmailLookup.productStoreId" from-field="webSite.productStoreId"/>
+                <set field="storeEmailLookup.emailType" value="PRDS_CUST_REGISTER"/>
+                <find-by-primary-key map="storeEmailLookup" entity-name="ProductStoreEmailSetting"  value-field="storeEmail"/>
+                <get-related-one value-field="createdUserLogin" relation-name="Person" to-value-field="person"/>
+                <set field="bodyParameters.person" from-field="person"/>
+                <set field="emailParams.bodyParameters" from-field="bodyParameters"/>  
+                <set field="emailParams.sendTo" from-field="emailContext.infoString"/>
+                <set field="emailParams.subject" from-field="storeEmail.subject"/>
+                <set field="emailParams.sendFrom" from-field="storeEmail.fromAddress"/>
+                <set field="emailParams.sendCc" from-field="storeEmail.ccAddress"/>
+                <set field="emailParams.sendBcc" from-field="storeEmail.bccAddress"/>
+                <set field="emailParams.contentType" from-field="storeEmail.contentType"/>
+                <set field="emailParams.bodyScreenUri" from-field="storeEmail.bodyScreenLocation"/>
+                <set field="emailParams.webSiteId" from-field="webSite.webSiteId"/>
+                <set field="emailParams.emailType" from-field="storeEmail.emailType"/>
+                <call-service service-name="sendMailFromScreen" in-map-name="emailParams"/>
+                
+                <!-- set field to request -->
                 <field-to-request field="partyId" request-name="partyId"/>
+                <field-to-request field="emailPurposeContext.contactMechId" request-name="contactMechId"/>
                 <return response-code="resultPage"/>
                 <else>
                     <property-to-field field="errorMessage" resource="MyPortalUiLabels" property="CaptchaMissingError"/><field-to-list field="errorMessage" list="error_list"/>

Modified: ofbiz/trunk/specialpurpose/myportal/webapp/myportal/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/webapp/myportal/WEB-INF/controller.xml?rev=740630&r1=740629&r2=740630&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/myportal/webapp/myportal/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/specialpurpose/myportal/webapp/myportal/WEB-INF/controller.xml Wed Feb  4 06:47:16 2009
@@ -27,17 +27,6 @@
     
     <description>Show personal information in the system</description>
     
-    <request-map uri="main">
-        <security https="true" auth="true"/>        
-        <response name="success" type="view" value="main"/>
-    </request-map>
-    <request-map uri="login">
-        <security https="true" auth="false"/>
-        <event type="java" path="org.ofbiz.securityext.login.LoginEvents" invoke="storeLogin"/>
-        <response name="success" type="view" value="main"/>
-        <response name="requirePasswordChange" type="view" value="requirePasswordChange"/>
-        <response name="error" type="view" value="login"/>
-    </request-map>
     <request-map uri="newRegisterLogin">
         <security https="true" auth="false"/>
         <event type="java" invoke="getCodeCaptcha" path="org.ofbiz.common.Captcha"/>

Modified: ofbiz/trunk/specialpurpose/myportal/webapp/myportal/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/webapp/myportal/WEB-INF/web.xml?rev=740630&r1=740629&r2=740630&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/myportal/webapp/myportal/WEB-INF/web.xml (original)
+++ ofbiz/trunk/specialpurpose/myportal/webapp/myportal/WEB-INF/web.xml Wed Feb  4 06:47:16 2009
@@ -25,7 +25,7 @@
     
     <context-param>
         <param-name>webSiteId</param-name>
-        <param-value>WebStore</param-value>
+        <param-value>MYPORTAL</param-value>
         <description>A unique ID used to look up the WebSite entity to get information about catalogs, etc.</description>
     </context-param>
     <context-param>

Modified: ofbiz/trunk/specialpurpose/myportal/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/widget/CommonScreens.xml?rev=740630&r1=740629&r2=740630&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/myportal/widget/CommonScreens.xml (original)
+++ ofbiz/trunk/specialpurpose/myportal/widget/CommonScreens.xml Wed Feb  4 06:47:16 2009
@@ -194,10 +194,6 @@
     <!--New Register Person-->
     <screen name="newRegisterLogin">
         <section>
-            <actions>
-                <set field="partyId" from-field="parameters.partyId"/>
-                <entity-one entity-name="PartyAndPerson" value-field="personInfo"/>
-            </actions>
             <widgets>
                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                     <decorator-section name="body">        
@@ -207,12 +203,13 @@
                             </condition>
                             <actions>
                                 <set field="partyId" from-field="parameters.partyId"/>
-                                <script location="component://party/webapp/partymgr/WEB-INF/actions/party/ViewProfile.groovy"/>
                             </actions>
                             <widgets>
                                 <label style="h2" text="${uiLabelMap.RegisterComplete}"/><link target="main" style="h2" text="${uiLabelMap.CommonBeLogged}"></link>
                                 <label style="h2" text="&lt;br&gt;&lt;br&gt;"/>
-                                <include-screen name="Party" location="component://party/widget/partymgr/ProfileScreens.xml"/>
+                                <screenlet title="${uiLabelMap.PartyPersonalInformation}">
+                                    <include-form name="ViewPartyPerson" location="component://myportal/widget/MyPortalForms.xml"/>
+                                </screenlet>
                             </widgets>
                             <fail-widgets>
                                 <container style="screenlet">

Modified: ofbiz/trunk/specialpurpose/myportal/widget/MyPortalForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/widget/MyPortalForms.xml?rev=740630&r1=740629&r2=740630&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/myportal/widget/MyPortalForms.xml (original)
+++ ofbiz/trunk/specialpurpose/myportal/widget/MyPortalForms.xml Wed Feb  4 06:47:16 2009
@@ -302,94 +302,16 @@
         <field name="task"><display description="${workEffortName}"/></field>
     </form>
     
-    <!--New Register Person-->  
+    <!--New Register Person-->
     <form name="RegisterPerson" type="single" target="createRegister" default-map-name="personInfo"
         focus-field-name="salutation" header-row-style="header-row" default-table-style="basic-table">
-        <auto-fields-service service-name="updatePerson"/>
-        <field use-when="personInfo!=null" name="partyId" title="${uiLabelMap.PartyPartyId}" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
-        <field use-when="personInfo==null&amp;&amp;partyId==null" name="partyId" title="${uiLabelMap.PartyPartyId}"><ignored/></field>
-        <field use-when="personInfo==null&amp;&amp;partyId!=null" name="partyId" title="${uiLabelMap.PartyPartyId}" tooltip="${uiLabelMap.CommonCannotBeFound}: [${partyId}]"><display also-hidden="false"/></field>
+        <field name="webSiteId"><hidden value="${webSiteId}"/></field>
+        <field name="salutation" title="Salutation" ><text size="40" maxlength="60"/></field>
         <field name="firstName" title="${uiLabelMap.PartyFirstName}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="40" maxlength="60"/></field>
+        <field name="middleName" title="${uiLabelMap.PartyMiddleName}" ><text size="40" maxlength="60"/></field>
         <field name="lastName" title="${uiLabelMap.PartyLastName}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="40" maxlength="60"/></field>
-        <field name="gender">
-            <drop-down allow-empty="true">
-                <option key="M" description="${uiLabelMap.CommonMale}"/>
-                <option key="F" description="${uiLabelMap.CommonFemale}"/>
-            </drop-down>
-        </field>
-        <field name="maritalStatus">
-            <drop-down allow-empty="true">
-                <option key="S" description="${uiLabelMap.PartyMaritalStatusSingle}"/>
-                <option key="M" description="${uiLabelMap.PartyMaritalStatusMarried}"/>
-                <option key="P" description="${uiLabelMap.PartyMaritalStatusSeparated}"/>
-                <option key="D" description="${uiLabelMap.PartyMaritalStatusDivorced}"/>
-                <option key="W" description="${uiLabelMap.PartyMaritalStatusWidowed}"/>
-            </drop-down>
-        </field>
-        <field name="employmentStatusEnumId">
-            <drop-down allow-empty="true">
-                <entity-options entity-name="Enumeration" key-field-name="enumId" description="${description} [${enumCode}]">
-                    <entity-constraint name="enumTypeId" value="EMPLOY_STTS"/>
-                    <entity-order-by field-name="sequenceId"/>
-                </entity-options>
-            </drop-down>
-        </field>
-        <field name="residenceStatusEnumId">
-            <drop-down allow-empty="true">
-                <entity-options entity-name="Enumeration" key-field-name="enumId" description="${description} [${enumCode}]">
-                    <entity-constraint name="enumTypeId" value="PTY_RESID_STTS"/>
-                    <entity-order-by field-name="sequenceId"/>
-                </entity-options>
-            </drop-down>
-        </field>                
-        <field name="existingCustomer">
-            <drop-down allow-empty="true"><option key="Y" description="${uiLabelMap.CommonY}"/><option key="N" description="${uiLabelMap.CommonN}"/></drop-down>
-        </field>
-        <field name="preferredCurrencyUomId">
-            <drop-down allow-empty="true">
-                <entity-options key-field-name="uomId" description="${abbreviation} - ${description}" entity-name="Uom">
-                    <entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
-                    <entity-order-by field-name="abbreviation"/>
-                </entity-options>
-            </drop-down>
-        </field>
-        <field name="statusId" use-when="person==null"><hidden/></field>
-        <field name="statusId" use-when="person!=null">
-            <drop-down allow-empty="false">
-                <entity-options description="${description}" entity-name="StatusItem">
-                    <entity-constraint name="statusTypeId" value="PARTY_STATUS"/>
-                    <entity-order-by field-name="sequenceId"/>
-                </entity-options>
-            </drop-down>
-        </field>
-        <field name="personalTitle"><ignored/></field>
-        <field name="suffix"><ignored/></field>
-        <field name="nickname"><ignored/></field>
-        <field name="firstNameLocal"><ignored/></field>
-        <field name="middleNameLocal"><ignored/></field>        
-        <field name="lastNameLocal"><ignored/></field>
-        <field name="otherLocal"><ignored/></field>        
-        <field name="memberId"><ignored/></field>
-        <field name="gender"><ignored/></field>
-        <field name="birthDate"><ignored/></field>
-        <field name="height"><ignored/></field>
-        <field name="weight"><ignored/></field>
-        <field name="mothersMaidenName"><ignored/></field>
-        <field name="maritalStatus"><ignored/></field>
-        <field name="socialSecurityNumber"><ignored/></field>
-        <field name="passportNumber"><ignored/></field>
-        <field name="passportExpireDate"><ignored/></field>
-        <field name="totalYearsWorkExperience"><ignored/></field>
-        <field name="employmentStatusEnumId"><ignored/></field>
-        <field name="residenceStatusEnumId"><ignored/></field>
-        <field name="occupation"><ignored/></field>
-        <field name="yearsWithEmployer"><ignored/></field>
-        <field name="monthsWithEmployer"><ignored/></field>
-        <field name="preferredCurrencyUomId"><ignored/></field>
-        <field name="description"><ignored/></field>
-        <field name="externalId"><ignored/></field>
-        <field name="existingCustomer"><ignored/></field>
-        <field name="comments" title="Why you would like a Log in?"/>
+        <field name="USER_EMAIL" title="${uiLabelMap.CommonEmail}" widget-style="required"><text size="60" maxlength="250"/></field>
+        <field name="comments" title="Why you would like a Log in?"><text size="60" maxlength="250"/></field>        
         <field name="UserLogin" title="${uiLabelMap.UserLogin}" title-area-style="group-label"><display description=" " also-hidden="false"/></field>
         <field name="USERNAME" title="${uiLabelMap.CommonUsername}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="30" maxlength="250"/></field>
         <field name="PASSWORD" title="${uiLabelMap.CommonPassword}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><password size="15" maxlength="250"/></field>
@@ -401,4 +323,16 @@
         <field name="submitButton" title="${uiLabelMap.CommonSave}" title-area-style="group-label"><submit button-type="button"/></field>
     </form>
     
+    <form name="ViewPartyPerson" type="single" default-map-name="lookupPerson" extends="ViewPartyPerson" extends-resource="component://party/webapp/partymgr/party/PartyForms.xml">
+        <actions>
+            <entity-one entity-name="PartyAndPerson" value-field="lookupPerson">
+                <field-map field-name="partyId" from-field="parameters.partyId"/>
+            </entity-one>
+            <entity-one entity-name="ContactMech" value-field="contactMech">
+                <field-map field-name="contactMechId" from-field="parameters.contactMechId"/>
+            </entity-one>
+        </actions>
+        <field name="infoString" title="${uiLabelMap.CommonEmail}" field-name="contactMech.infoString"><display description="${contactMech.infoString}"/></field>
+    </form>
+    
 </forms>

Modified: ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml?rev=740630&r1=740629&r2=740630&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml (original)
+++ ofbiz/trunk/specialpurpose/myportal/widget/MyPortalScreens.xml Wed Feb  4 06:47:16 2009
@@ -1538,4 +1538,15 @@
         </section>
     </screen>
     
+    <screen name="CreateUserNotification">
+        <section>
+            <actions>
+                <set field="title" value="Myportal Account Creation Notification Mail"/>
+            </actions>
+            <widgets>
+                <platform-specific><html><html-template location="component://party/templates/email/CreatePartyNotification.ftl"/></html></platform-specific>
+            </widgets>
+        </section>
+    </screen>
+    
 </screens>