14.01.2013 Views

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The information you enter in this panel is stored in a resource bundle for the entity<br />

object. This means that if you want to translate your application, you have to go through<br />

numerous resource bundles, created for all your entity and view objects (which also<br />

support control hints) and make language-specific copies of all those bundles.<br />

Internationalizing Control Hints. Explained in ADF Developers <strong>Guide</strong>.<br />

http://download.oracle.com/docs/html/B25947_01/bcentities005.htm#sm01<br />

40<br />

This can be a tedious job when you have many ADF Business Components. When using<br />

<strong>JHeadstart</strong>, you have an easier and faster alternative.<br />

By default, <strong>JHeadstart</strong> will copy the values for Label Text, and Tooltip Text to the<br />

corresponding item properties (Prompt in Form Layout and Hint Text) in the <strong>JHeadstart</strong><br />

Application Definition file. Then, when you generate your application with the servicelevel<br />

property Generate NLS-enabled prompts and tabs checked, all translatable<br />

strings, including labels and tooltip/hint texts, are stored in one centralized resource<br />

bundle, or database table. One centralized bundle is much easier to manage and<br />

translate, and when you use the database table as the store for translatable strings,<br />

<strong>JHeadstart</strong> even offers an in-page editor to translate your application. See chapter 11<br />

”Internationalization” for more information.<br />

Now, if for whatever reason you want to use the business component resource bundles<br />

for translating labels and tool tips, instead of the <strong>JHeadstart</strong> resource bundle or database<br />

table, then you can do so by switching a <strong>JHeadstart</strong> preference. Go to the JDeveloper<br />

Tools menu and choose “Preferences…” At the left side click “ <strong>JHeadstart</strong> Settings” and<br />

the panel displayed below appears.<br />

If you check the checkbox “Bind Item prompt to ADF BC Control Hint “Label Text”,<br />

<strong>JHeadstart</strong> will no longer copy the Label value over to the Application Definition.<br />

Instead, it will set the Label property of the item to an EL expression that references the<br />

label as defined in the Control Hints panel.<br />

3 - 10 Creating Business Components <strong>JHeadstart</strong> <strong>Developer's</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!