Hands-on Practice: Access Message Bundle Messages with EL

You can retrieve messages from the message bundle without writing Java code by using a JSF component, f:loadBundle; this component creates a token (variable) that represents all messages and you can access this token in EL expressions. The following steps demonstrate how this method works.

1. In the home.jsp file, drag LoadBundle from the JSF Core page of the Component Palette on top of the f:view node of the Structure window.

2. In the Insert LoadBundle dialog, click “…” next to the Basename field. Select the Properties File option, and the dialog will change to a file browser display.

3. Navigate to the ..\ViewController\resources directory, and select “Messages.properties.” Click OK. ...

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.