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.

4.2. Using the <strong>JHeadstart</strong> Enable Project Wizard<br />

4.2.1. Enabling <strong>JHeadstart</strong> on a new project<br />

JDeveloper offers a host of technologies that you might or might not use in a project. The<br />

use of some of these technologies might require the presence of some files or settings in<br />

your project. To facilitate the development process, JDeveloper will usually create these<br />

files and/or settings for you the first time you use such a technology in your project,<br />

often without notice. For instance, the first time you create an ADF Faces page in a<br />

project, JDeveloper will automatically add a number of settings to the web.xml file, and<br />

add a faces-config.xml file to your project<br />

In a similar fashion, the use of <strong>JHeadstart</strong> also requires such files and settings in your<br />

project. We have chosen to make the use of <strong>JHeadstart</strong> on a project a deliberate choice.<br />

Before allowing the use of any <strong>JHeadstart</strong> Addins on a project, you must first ‘enable’<br />

<strong>JHeadstart</strong> on it. Typically, this only needs to occur on the ‘ViewController’ project: the<br />

project that will hold the JSF Navigation files and the JSF JSP pages. This action will also<br />

trigger the creation of those files and settings needed for a <strong>JHeadstart</strong> application.<br />

Enabling <strong>JHeadstart</strong> on a project is a simple operation that you can perform by right<br />

clicking on the project, and selecting the option ‘Enable <strong>JHeadstart</strong> on this Project’.<br />

The <strong>JHeadstart</strong> Enable Project Wizard that is invoked by this menu option does not ask<br />

for any input. All you need to do is click ‘Next’ and ‘Finish’. It will then create and add a<br />

number of files to your project, and make some required project settings. It will report<br />

what it has done in the following dialogue:<br />

4 - 4 Using the <strong>JHeadstart</strong> Addins <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!