• Validation and localization - missing resource error?

    By Mikolaj MS Szczepanski 1 decade ago

    Hi!

    I got a problem with dialogs and validation - no matter cilent or server.

    When I try to submit dialog with a field that wont pass validation I recieve java error:

    Źródło błędu

    Nazwa strony:/Core_InPlaceDialog.xsp
     

    Wyjątek

    java.util.MissingResourceException: Can't find resource for bundle javax.faces.Messages, key pl
    Can't find resource for bundle javax.faces.Messages, key pl

    Tested on Ext Lib sample database, Core InPlaceDialog.

    Server: 8.5.2 + Polish Language Pack

    I've looked for solution but so far haven't found any.

    Any one can help me?

    • This is SPR#MKEE8HNKWL - workarounds

      By Maire Kehoe 1 decade ago

      The issue you're describing is not actually a problem in the Extension Library,
      but in the XPages Runtime. The issue is tracked as SPR#MKEE8HNKWL, and is likely to be fixed in Domino 8.5.3.

      The issue is that the XPages runtime has a file "javax/faces/Message_en.properties", but does not have the corresponding Messages.properties (without a locale suffix), so when XPages attempts to access that file in a non-English language, that exception occurs. The file contains some message strings about validation that appear in the Display Errors control.

      To workaround the issue, you can either change your application's Localization Options to use English, or you can change your server language to English.

      To change your application's Localization Options to English, in the Application Properties, you will need to enable localization, add the language English, set the default language to English, save, and then in the menus do Project,  Clean for that application (which will re-build and re-sign all of your XPages). For details on the Localization Options see:
      http://www-10.lotus.com/ldd/ddwiki.nsf/dx/UsingLocalizationOptions.htm

      To change your server language to English, in  MS Windows, go to Control Panel, Regional and Language options, and change the language there.

      Thanks for your feedback.