Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Default message and the application message are comming together in the validators

$
0
0
Dear All,


In my datasource I am setting the errorMessage as you see in the below code

Code:

                <field name="II1_PRODUCT_NUMBER" type="text" required="true">
                        <validators>
                                <validator type="requiredIf" expression="true" >
                        <errorMessage><fmt:message key="XXXX_V_011"/></errorMessage>
                </validator>
                                <validator type="serverCustom">
                                        <serverObject lookupStyle="new"
                                                className="qa.gov.moi.erp.web.dmi.ItemIssueProductValidatorDMI" />
                                        <errorMessage>$product</errorMessage>
                                </validator>
                        </validators>
                </field>



but at the validation time both messages (default error messages exist for all built-in validators and the application message) are comming together as you can see in the attached images


Version : SmartClient_v90p_2014-01-14_PowerEdition

Attached Images
File Type: jpg validator.JPG (19.3 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles