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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9.1. Static Menu Structure<br />

9.1.1. Which Menu Tab is Selected?<br />

By default, <strong>JHeadstart</strong> generates a static menu structure that reflects the structure of the<br />

service as defined in the application definition. For each top-level group, a tab within the<br />

level 1 menu tab bar is generated. For second-level groups that are not displayed on the<br />

same page as the top-level group, a tab within the level 2 menu tab bar is generated, as<br />

shown in the pictures below.<br />

Group structure defined in application definition<br />

determines generated menu 1 and menu 2 tab bars<br />

The Tabname property of a group determines the label of the menu tab. When you check<br />

the service-level checkbox Generate NLS-enabled prompts and tabs?, the label of the<br />

menu option will be read from a resource bundle, with the value of the Tabname<br />

property used as default. See the section on Internationalization for more info on multilanguage<br />

support.<br />

When using the static menu structure, the level 1 and level 2 menu tabs that are<br />

displayed as selected are determined by the current page. Each generated page contains<br />

a page snippet that references the ADF Faces Region .jspx file that contains the menu1<br />

and menu 2 entries. In this reference, the selected tab name is passed as shown in the<br />

page snippet below:<br />

9 - 2 Generating Menu Structures <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!