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.

• Generate all Main faces-config files in the WEB-INF directory with a suffix<br />

indicating the service<br />

• JhsCommon-beans.xml is shared by all services (application definitions); the<br />

location should never be changed.<br />

• Create a subdirectory per service for the generation of group beans faces<br />

config files, pages and regions. Make a subdirectory under this “service”<br />

directory for each of these file types.<br />

• The View Package property should be the same across all services<br />

• The Resource Bundle Type and NLS Resource Bundle properties should be<br />

the same across all services.<br />

Note that all service-level properties that are generally the same across all services have<br />

got the same values as in your “own” application definition. If you later on decide to<br />

make changes to these settings in your own application definition, then you will need to<br />

make the same change in the MenuAdminAppDef Application Definition.<br />

Now, if you are satisfied with the settings, you can run the JAG for the<br />

MenuAdminAppDef. Note that like every other Application Definition service, the Menu<br />

Admin service is treated as another module in your application: the generated SQL script<br />

DynamicMenuDataMenuAdminService.sql has inserted a row in JHS_MODULES, and<br />

rows in JHS_MENU_ITEMS for all level 1 and level 2 groups.<br />

9.2.3. Defining the Menu Structure At Runtime<br />

You are now ready to run the generated application, and change/define the menu<br />

structure at runtime. If you start the application again, you will notice that the menu<br />

structure is quite similar to the static menu structure.<br />

This is because the generated SQL script that inserts rows in the JHS_MODULES and<br />

JHS_MENU_ITEMS tables generates entries using the same algorithm as used for the<br />

static menu structure. Now, using the module drop down list, we can navigate to the<br />

MenuAdmin module, and change the menu structure anyway we want.<br />

9 - 10 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!