5. Working with Message Bundles
Documentation
>
JSF
>
Internationalization
> Working with Message Bundles
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.  Loading your Message BundleBefore 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 Dreamweaver Template
|