Menu

Query regarding the EmailID rule.

Rules
Abhishek
2002-08-08
2002-08-09
  • Abhishek

    Abhishek - 2002-08-08

    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

     
    • Iddy

      Iddy - 2002-08-09

      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

       
      • Abhishek

        Abhishek - 2002-08-09

        Very very thanx for ur feedback.
        1 part i already completed..
        2. i will implement that .
        abhishek

         

Log in to post a comment.