Hands-on Practice: Create and Call a Message Bundle

You can try out this concept using the code in the following example. This example adds messages to a single message file for the application developed in the earlier section. It also adds the code to extract the messages in the backing bean. If you required international support, you would create additional message files in the same way, using the same message key names. The exercise of creating additional files is left to you, but it follows the same pattern as the next steps.

You need to create a file that JDeveloper does not create by default—the message bundle file. This example will demonstrate how to create a properties (text) file with key-value pairs for the message. Alternatively, ...

Get Oracle JDeveloper 10g for Forms & PL/SQL Developers: A Guide to Web Development with Oracle ADF now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.