Improved: Proper client side validation while creating price rule from catalog manager.
(OFBIZ-7307)

Thanks: Suraj Khurana for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774801 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/applications/product/widget/catalog/PriceForms.xml b/applications/product/widget/catalog/PriceForms.xml
index 4e5e807..b3a19cf 100644
--- a/applications/product/widget/catalog/PriceForms.xml
+++ b/applications/product/widget/catalog/PriceForms.xml
@@ -48,10 +48,9 @@
         </field>
     </form>
     <form name="AddPriceRules" type="single" target="createProductPriceRule">
-        <field name="ruleName" title="${uiLabelMap.ProductName}"><text size="30"/></field>
+        <field name="ruleName" title="${uiLabelMap.ProductName}" required-field="true"><text size="30"/></field>
         <field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
     </form>
-    
     <!-- Below, I tried also single forms but lists are better as long as we have not introduced a better way to handle positions -->   
     <form name="EditProductPriceRule" type="list" target="updateProductPriceRule" title="" list-name="productPriceRules" 
         odd-row-style="alternate-row" default-table-style="basic-table hover-bar" separate-columns="true">