Developing Web 2.0 applications
with JavaServerFaces
and Dreamweaver
>> Just Became Easier
Documentation
Documentation
Search 

Contents

1. Introduction
2. Getting Started
3. Developing Web Sites
Selected 4. Using Components
5. Internationalization
6. Code View Support
7. Design View Support
8. Keyboard Shortcuts
9. Tag Object Toolbars
10. JSF Server Behaviors
11. Property Inspectors
12. JSF Tag Reference

5. Internationalization

Contents > Using Components > Message Bundles

Displaying Localized Messages to your Users

JavaServer Faces (JSF) uses message bundles for internationalizing your Web applications. JSFToolbox extends Dreamweaver by add a Message Bundle component and with drag-and-drop functionality for adding localized messages to your JSF pages.

JSFToolbox will find any message bundle components available to your site. These will automatically appear in the Message Bundles components palette. You can drag-and-drop message bundle properties onto your JSF pages to display localized messages to your users. Simple configure a message bundle in your Faces configuration file and JSFToolbox will automatically detect it. The Message Bundle will appear in the components palette, along with property and supported locale information.

Message Bundle Components

Loading your Message Bundle

Before you can use your message bundle in a JSF page, you must declare a JSF Core tag to enable the message bundle for that page. You could do this in a Dreamweaver template and allow the tag to propagate to all your template-controlled Web pages. You can use the JSF Core tags toolbar to add a bundle to your page. (The green arrow indicates the f:loadBundle tag object in the toolbar.)


Using the Message Bundle Toolbar

Use the JSF Expression Language (EL)

Once you have added the f:loadBundle tag to your template, simply drag and drop message bundle properties into Dreamweaver's code view to add localized messages to your pages.

Adding the LoadBundle Tag to your Template
Adding the LoadBundle Tag to your Dreamweaver Template