Applying OFBIZ-5088 which are misc. cleanups

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/20120329_portletWidget@1425523 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/applications/party/widget/ProfileForms.xml b/applications/party/widget/ProfileForms.xml
index 0810cde..8b9f75f 100644
--- a/applications/party/widget/ProfileForms.xml
+++ b/applications/party/widget/ProfileForms.xml
@@ -1145,7 +1145,7 @@
                    <parameter param-name="billingAccountId"/>
             </show-portlet>
         </field>
-        <on-event-update-area event-type="paginate" area-id="" area-target="refreshPortlet">
+        <on-event-update-area event-type="paginate" area-id="" area-target="showPortlet">
             <parameter param-name="portalPortletId" from-field="parameters.portalPortletId"/>
             <parameter param-name="partyId" from-field="partyId"/>
         </on-event-update-area>
@@ -1178,7 +1178,7 @@
                <parameter param-name="partyId" from-field="parameters.partyId"/>
             </show-portlet>
         </field>
-        <on-event-update-area event-type="submit" area-id="${parameters.areaId}" area-target="refreshPortlet" >
+        <on-event-update-area event-type="submit" area-id="${parameters.areaId}" area-target="showPortlet" >
              <parameter param-name="portalPortletId" from-field="parameters.portalPortletId"/>
              <parameter param-name="partyId" from-field="parameters.partyId"/>
              <parameter param-name="billingAccountId"/>
@@ -1241,7 +1241,7 @@
                <parameter param-name="partyId" from-field="parameters.partyId"/>
             </show-portlet>
         </field>
-        <on-event-update-area event-type="submit" area-id="${parameters.areaId}" area-target="refreshPortlet">
+        <on-event-update-area event-type="submit" area-id="${parameters.areaId}" area-target="showPortlet">
              <parameter param-name="portalPortletId" from-field="parameters.portalPortletId"/>
              <parameter param-name="partyId" from-field="parameters.partyId"/>
         </on-event-update-area>
@@ -1289,7 +1289,7 @@
                <parameter param-name="partyId" from-field="parameters.partyId"/>
             </show-portlet>
         </field>
-        <on-event-update-area event-type="submit" area-id="${parameters.areaId}" area-target="refreshPortlet">
+        <on-event-update-area event-type="submit" area-id="${parameters.areaId}" area-target="showPortlet">
              <parameter param-name="portalPortletId" from-field="parameters.portalPortletId"/>
              <parameter param-name="partyId" from-field="parameters.partyId"/>
         </on-event-update-area>
@@ -1315,7 +1315,7 @@
                <parameter param-name="partyId" from-field="parameters.partyId"/>
             </show-portlet>
         </field>
-        <on-event-update-area event-type="submit" area-id="${parameters.areaId}" area-target="refreshPortlet">
+        <on-event-update-area event-type="submit" area-id="${parameters.areaId}" area-target="showPortlet">
              <parameter param-name="portalPortletId" from-field="parameters.portalPortletId"/>
              <parameter param-name="partyId" from-field="parameters.partyId"/>
         </on-event-update-area>
@@ -1351,7 +1351,7 @@
                <parameter param-name="partyId" from-field="parameters.partyId"/>
             </show-portlet>
         </field>
-        <on-event-update-area event-type="submit" area-id="${parameters.areaId}" area-target="refreshPortlet">
+        <on-event-update-area event-type="submit" area-id="${parameters.areaId}" area-target="showPortlet">
              <parameter param-name="portalPortletId" from-field="parameters.portalPortletId"/>
              <parameter param-name="partyId" from-field="parameters.partyId"/>
         </on-event-update-area>
diff --git a/framework/common/data/CommonPortletData.xml b/framework/common/data/CommonPortletData.xml
index 48ab4ab..0cd2c1b 100644
--- a/framework/common/data/CommonPortletData.xml
+++ b/framework/common/data/CommonPortletData.xml
@@ -18,18 +18,7 @@
     under the License.
 -->
 <entity-engine-xml>
-    <PortletCategory portletCategoryId="GENERIC_PORTLET" description="Generics portlets usable for easily parametrize portalPages"/>
-    <PortalPortlet portalPortletId="GenericPortalPage" portletName="Sub PortalPage" screenName="GenericPortalPage" screenLocation="component://common/widget/PortalPageScreens.xml" editFormName="GenericPortalPageParam" editFormLocation="component://common/widget/PortletEditForms.xml" description="a portlet which included a portalPage to be able to have multiple line, each line being a sub page. This portlet has 1 mandatory parameters." securityServiceName="" securityMainAction="VIEW"/>
-    <PortletPortletCategory portalPortletId="GenericPortalPage" portletCategoryId="GENERIC_PORTLET"/>
-    <PortalPortlet portalPortletId="FindGenericEntity" portletName="Entity List simple search criteria" screenName="FindGenericEntity" screenLocation="component://common/widget/PortalPageScreens.xml" editFormName="FindGenericEntityParam" editFormLocation="component://common/widget/PortletEditForms.xml" description="Simple search criteria, only Id (param idName) and description for entityList, result is sent to List${Entity}Area (FindGenericEntityPrtl define this area). This portel has 3 mandatory parameters." securityServiceName="" securityMainAction="VIEW"/>
-    <PortletPortletCategory portalPortletId="FindGenericEntity" portletCategoryId="GENERIC_PORTLET"/>
-    <PortalPortlet portalPortletId="GenericScreenlet" portletName="Screenlet with one screen" screenName="GenericScreenlet" screenLocation="component://common/widget/PortalPageScreens.xml" editFormName="GenericScreenletParam" editFormLocation="component://common/widget/PortletEditForms.xml" description="Simple portlet using screenlet, with one screen. This portlet has 3 mandatory parameters." securityServiceName="" securityMainAction="VIEW"/>
-    <PortletPortletCategory portalPortletId="GenericScreenlet" portletCategoryId="GENERIC_PORTLET"/>
-    <PortalPortlet portalPortletId="GenericScreenletAjax" portletName="Screenlet with one screen called by ajax" screenName="GenericScreenletAjax" screenLocation="component://common/widget/PortalPageScreens.xml" editFormName="GenericScreenletAjaxParam" editFormLocation="component://common/widget/PortletEditForms.xml" description="Simple portlet using screenlet, with one screen which was update by ajax process, so with a div. This portlet has 4 mandatory parameters." securityServiceName="" securityMainAction="VIEW"/>
-    <PortletPortletCategory portalPortletId="GenericScreenletAjax" portletCategoryId="GENERIC_PORTLET"/>
-    <PortalPortlet portalPortletId="GricScltAjaxWithMenu" portletName="Screenlet with one screen, and one menu called by ajax" screenName="GenericScreenletAjaxWithMenu" screenLocation="component://common/widget/PortalPageScreens.xml" editFormName="GenericScreenletAjaxWithMenuParam" editFormLocation="component://common/widget/PortletEditForms.xml" description="Simple portlet using screenlet with a menu, with one screen which was update by ajax process, so with a div. This portlet has 6 mandatory parameters." securityServiceName="" securityMainAction="VIEW"/>
-    <PortletPortletCategory portalPortletId="GricScltAjaxWithMenu" portletCategoryId="GENERIC_PORTLET"/>
-    <PortalPage portalPageId="_NA_" sequenceNum="000" portalPageName="For using genericPortletScreen" description="To be able to have parameters at the portlet level, not PortletPage level" ownerUserLoginId="_NA_"/>
+    <PortalPage portalPageId="_NA_" sequenceNum="000" portalPageName="For portlet attribute default value" description="To be able to have parameters at the portlet level, not PortletPage level" ownerUserLoginId="_NA_"/>
   <!--#Bam# portletWidget -->
   <PortletType portletTypeId="Decorator" screenName="portletUiLabelDecorator" description="use screen and screen location in the portletDecorator" screenLocation="component://common/widget/PortletTypeScreens.xml"/>
   <PortletType portletTypeId="Screenlet" screenName="Screenlet" description="depending of scriptName, menuName and screenName exist a screen with call (or not) scriptName in action and include a screenlet with include formName (or screenName) and include (or not) menuName" screenLocation="component://common/widget/PortletTypeScreens.xml"/>
diff --git a/framework/common/webcommon/WEB-INF/portal-controller.xml b/framework/common/webcommon/WEB-INF/portal-controller.xml
index 70047b4..ed0a32f 100644
--- a/framework/common/webcommon/WEB-INF/portal-controller.xml
+++ b/framework/common/webcommon/WEB-INF/portal-controller.xml
@@ -27,10 +27,6 @@
         <security https="true" auth="true"/>
         <response name="success" type="view" value="showPortlet"/>
     </request-map>
-    <request-map uri="refreshPortlet">
-        <security https="true" auth="true"/>
-        <response name="success" type="view" value="showPortlet"/>
-    </request-map>
     <request-map uri="showPortletMainDecorator">
         <security https="true" auth="true"/>
         <response name="success" type="view" value="showPortletMainDecorator"/>
diff --git a/framework/common/widget/PortalPageForms.xml b/framework/common/widget/PortalPageForms.xml
index a2250a3..38a2528 100644
--- a/framework/common/widget/PortalPageForms.xml
+++ b/framework/common/widget/PortalPageForms.xml
@@ -136,18 +136,6 @@
         
     </form>
 
-    <form name="FindGenericEntity" type="single" target="list${entity}" title="" focus-field-name="idName">
-        <field name="idName" title="${uiLabelMap.FormFieldTitle_${pkIdName}"><text size="16"/></field>
-        <field name="idName_op" ><hidden value="contains"/></field>
-        <field name="idName_ic" ><hidden value="Y"/></field>
-        <field name="description" ><text size="16"/></field>
-        <field name="description_op" ><hidden value="contains"/></field>
-        <field name="description_ic" ><hidden value="Y"/></field>
-        <field name="submitButton" title=" " widget-style="smallSubmit">
-            <hyperlink target="javascript:ajaxUpdateArea('List${entity}Area', 'list${entity}', $(FindGenericEntity).serialize());" target-type="plain"  description="${uiLabelMap.CommonSearch}"/>
-        </field>
-    </form>
-
     <form name="EditPortalPageColumnWidth" type="single" target="updatePortalPageColumnWidth" default-map-name="portalPageColumn">
         <field name="portalPageId"><hidden/></field>
         <field name="columnSeqId"><hidden/></field>
diff --git a/framework/common/widget/PortalPageScreens.xml b/framework/common/widget/PortalPageScreens.xml
index fbd1de1..ea67e47 100644
--- a/framework/common/widget/PortalPageScreens.xml
+++ b/framework/common/widget/PortalPageScreens.xml
@@ -140,54 +140,6 @@
         </section>
     </screen>
 
-    <screen name="GenericPortalPage">
-        <section>
-            <widgets>
-                <include-portal-page id="${pageId}"/>
-            </widgets>
-        </section>
-    </screen>
-    <screen name="FindGenericEntity">
-        <section>
-            <widgets>
-                <screenlet title="${uiLabelMap.${titleLabel}}">
-                    <include-form name="FindGenericEntity" location="component://common/widget/PortalPageForms.xml"/>
-                </screenlet>
-            </widgets>
-        </section>
-    </screen>
-    <screen name="GenericScreenlet">
-        <section>
-            <widgets>
-                <screenlet title="${uiLabelMap.${titleLabel}}" collapsible="true" id="scrlt_${formName}">
-                    <include-form name="${formName}" location="${formLocation}"/>
-                </screenlet>
-            </widgets>
-        </section>
-    </screen>
-    <screen name="GenericScreenletAjax">
-        <section>
-            <widgets>
-                <screenlet title="${uiLabelMap.${titleLabel}}">
-                    <container id="${divIdArea}">
-                        <include-screen name="${screenName}" location="${screenLocation}"/>
-                    </container>
-                </screenlet>
-            </widgets>
-        </section>
-    </screen>
-    <screen name="GenericScreenletAjaxWithMenu">
-        <section>
-            <widgets>
-                <screenlet title="${uiLabelMap.${titleLabel}}" navigation-menu-name="${menuName}">
-                    <include-menu name="${menuName}" location="${menuLocation}"/>
-                    <container id="${divIdArea}">
-                        <include-screen name="${screenName}" location="${screenLocation}"/>
-                    </container>
-                </screenlet>
-            </widgets>
-        </section>
-    </screen>
     <screen name="EditPortalPortletAttributes">
         <section>
             <actions>
diff --git a/framework/common/widget/PortletEditForms.xml b/framework/common/widget/PortletEditForms.xml
index 2083b4b..8590289 100644
--- a/framework/common/widget/PortletEditForms.xml
+++ b/framework/common/widget/PortletEditForms.xml
@@ -33,10 +33,6 @@
         <field name="portalPortletId"><hidden value="${parameters.portalPortletId}"/></field>
         <field name="portletSeqId"><hidden value="${parameters.portletSeqId}"/></field>
     </form>
-    <form name="GenericPortalPageParam" extends="CommonPortletEdit">
-        <field name="pageId" required-field="true"><text/></field>
-        <field name="submit" widget-style="smallSubmit"><submit button-type="button"/></field>
-    </form>
     <!--#Bam# portletEditForm  -->
     <!-- use by portlet throws an extend form-->
     <!-- mgmtPageId : portal page with research and quick vision -->
@@ -84,37 +80,5 @@
         <field name="submit" widget-style="smallSubmit"><submit button-type="button"/></field>
     </form>
     <!--#Eam# portletEditForm  -->
-    <form name="FindGenericEntityParam" extends="CommonPortletEdit">
-        <field name="titleLabel" required-field="true"><text/></field>
-        <field name="entity" required-field="true"><text/></field>
-        <field name="pkIdName" required-field="true"><text/></field>
-        <field name="divIdRefresh"><text/></field>
-        <field name="submit" widget-style="smallSubmit"><submit button-type="button"/></field>
-    </form>
-    <form name="GenericScreenletParam" extends="CommonPortletEdit">
-        <field name="titleLabel" required-field="true"><text/></field>
-        <field name="divIdRefresh"><text/></field>
-        <field name="formName" required-field="true"><text/></field>
-        <field name="formLocation" required-field="true"><text/></field>
-        <field name="submit" widget-style="smallSubmit"><submit button-type="button"/></field>
-    </form>
-    <form name="GenericScreenletAjaxParam" extends="CommonPortletEdit">
-        <field name="titleLabel" required-field="true"><text/></field>
-        <field name="divIdRefresh"><text/></field>
-        <field name="divIdArea" required-field="true"><text/></field>
-        <field name="screenName" required-field="true"><text/></field>
-        <field name="screenLocation" required-field="true"><text/></field>
-        <field name="submit" widget-style="smallSubmit"><submit button-type="button"/></field>
-    </form>
-    <form name="GenericScreenletAjaxWithMenuParam" extends="CommonPortletEdit">
-        <field name="titleLabel" required-field="true"><text/></field>
-        <field name="divIdRefresh"><text/></field>
-        <field name="divIdArea" required-field="true"><text/></field>
-        <field name="screenName" required-field="true"><text/></field>
-        <field name="screenLocation" required-field="true"><text/></field>
-        <field name="menuName" required-field="true"><text/></field>
-        <field name="menuLocation" required-field="true"><text/></field>
-        <field name="submit" widget-style="smallSubmit"><submit button-type="button"/></field>
-    </form>
 
 </forms>