Localizing Business Components Client Control Hints

You can create language-specific versions of control hints that you set for ADF Business Components attributes by duplicating the MsgBundle.java file that contains the original control hints.

To localize the MsgBundle.java file:

  1. Create the MsgBundle.java file by setting Control Hints for the desired entity objects and view objects .

  2. Search the file system for the generated <viewobjectname> ImplMsgBundle.java file in the /src/bcpackage/common/ directory of your Business Components Model project folder.

  3. Copy the file and rename it with the locale suffix specified by the HTTP request object. For example, the German version of the file MyVOImplMsgBundle.java would be renamed as:

    MyVOImplMsgBundle_de.java

  4. Open the renamed file in a text editor and edit all occurrences of the renamed class in the .java file.

  5. Set your browser's language locale preferences to use the desired localized file. For example, if you use Microsoft Internet Explorer:

    1. Choose Tools | Internet Options .
    2. Click Languages on the General page to view the Language Preferences dialog.

If the browser's language settings do not match a corresponding localized MsgBundle.java file (one with the correct suffix), the JSP page will revert to the default attribute settings defined in the Business Components project, as though no control hints had been defined.


About Control Hints for Business Components Clients

 

Copyright © 1997, 2004, Oracle. All rights reserved.