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.

6.6. Generating a Radio Group<br />

6.6.1. Static radio group based on a domain<br />

6.6.2. Translation of static domains<br />

Use a radio group when the list of values the user can choose from is small. You have to<br />

distinguish between two cases:<br />

• The list of values is static; the values are not queried from the database. In this<br />

case you base the radio group on a Static Domain or a List Validator.<br />

• The list of values is dynamic. In this case you must base the radio group on a<br />

Dynamic Domain.<br />

When using this option, you have to create a Static Domain as described in Static<br />

dropdown list based on a Static Domain.<br />

The Display Type property must be set to radio-vertical or radio-horizontal.<br />

Generate your application, and you will get a radio group.<br />

As you see, the meaning of the domains in the Application Definition Editor is only in<br />

one language. When you need to be able to translate domain meanings in other<br />

languages, set service level property Generate NLS-enabled prompts and tabs to true.<br />

When this property is set, <strong>JHeadstart</strong> will generate entries for each domain value in the<br />

ApplicationResources.properties file.<br />

6.6.3. Dynamic radio group based on a Dynamic Domain<br />

When the radio group must be dynamic, use a Dynamic Domain based on a View Object<br />

Usage to generate the dropdown list.<br />

The steps to create a dynamic radio group are almost identical to the steps for creating a<br />

dynamic dropdown list, see Dynamic dropdown list based on a Dynamic Domain. The<br />

Meaning Attribute is used to get labels for the radio buttons. Finally the Display Type<br />

should be radio-vertical or –horizontal.<br />

6- 10 Generating User Interface Widgets <strong>JHeadstart</strong> Developer’s <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!