1. Do any initilization required for th email validation? (right now i have completed the iomplemnetaiton without any initializaiton)
2. How to add multiple initilization failure text in resource bundle file?
waiting for reply !
abhishek
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1. If you code doesnt need any initialisation parameters then set
com.id_crm.validate.rules."YourClass"_INITIALISATION_REQUIRED=False
in the resource bundle
2. There is a static initialiser block in the BaseRule class that retieves the Initialisation messages (and others) from the resource bundle. If you need extra messages then repeat this fucntionality in you own class e.g.
static{
//KEY is initialised in BaseRule to your fully qualified classname
hi every body!
1. Do any initilization required for th email validation? (right now i have completed the iomplemnetaiton without any initializaiton)
2. How to add multiple initilization failure text in resource bundle file?
waiting for reply !
abhishek
Abhihere
1. If you code doesnt need any initialisation parameters then set
com.id_crm.validate.rules."YourClass"_INITIALISATION_REQUIRED=False
in the resource bundle
2. There is a static initialiser block in the BaseRule class that retieves the Initialisation messages (and others) from the resource bundle. If you need extra messages then repeat this fucntionality in you own class e.g.
static{
//KEY is initialised in BaseRule to your fully qualified classname
String msg2 = RulesData.getMessage(KEY + "INITIALISATION_FAILURE_2");
etc
}
and then remember to add the extra messages to the resource bundle
Adrian
Very very thanx for ur feedback.
1 part i already completed..
2. i will implement that .
abhishek