Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Resolving i18n error message : In which layer ?

  1. #11

    Default

    Maybe you have to relax the statement. If you let external systems also be users, it's correct again.

    IMO like many other things error code resolution is part of a component and so it should be encapsulated in it. No "user" of a component should care about error code resolution.

  2. #12
    Join Date
    Dec 2008
    Location
    Ulaanbaatar, Mongolia
    Posts
    123

    Default

    I've fixed my problem. 1st I was using following code:
    Code:
    new ClassValidator(obj.getClass(), ResourceBundle.getBundle("DefaultValidatorMessages", new Locale("mn", "MN")));
    And then used following code:
    Code:
    new ClassValidator(obj.getClass(), ResourceBundle.getBundle("org.hibernate.validator.resources.DefaultValidatorMessages", new Locale("mn", "MN")));
    Let's care our nature!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •