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.

• config/defaultTemplateBindings.jtp: <strong>JHeadstart</strong> Template Properties file that<br />

defines which Velocity template files are used for what purpose<br />

• default/*/*.vm: default Velocity template files used for generating the<br />

application<br />

Warning: Never customize one of the standard <strong>JHeadstart</strong> files directly, be it a<br />

default template, a.jspx, or any other file that was created by enabling<br />

<strong>JHeadstart</strong> for your project. When you upgrade to a newer version of<br />

<strong>JHeadstart</strong> they will be overwritten. Always create a custom template<br />

template and refer to custom versions of the standard files there. Then you can<br />

refer to your custom template in the Application Definition (see below).<br />

Suggestion: Always put your custom templates into a different root folder, so<br />

you quickly can have an overview of all template customizations in your<br />

project.<br />

The defaultTemplateBindings.jtp file describes all the available templates and has<br />

pointers to the location of the templates. So, when changing the shipped <strong>JHeadstart</strong><br />

templates, you can copy them to another location, create a new Template Binding File<br />

(for example customTemplateBindings.jtp) and refer to that in your Application<br />

Definition.<br />

You can define a custom Template Binding File to be used for the whole service, or for a<br />

group, or for any other level. You specify it by going to the Templates tab (instead of the<br />

Properties tab) and setting the Template Binding File property to<br />

customTemplateBindings.jtp.<br />

Attention: The Template Binding File you specify in your Application<br />

Definition does not need to include the complete list of templates. Only<br />

include the lines for the templates you have customized. The other templates<br />

will be inherited from the higher level Template Bindings file, or if there is no<br />

higher level, from the <strong>JHeadstart</strong> default settings.<br />

As you can see in the screen shot, you can also override the individual templates that are<br />

referred in the Template Bindings File, like DATA_PAGE or LOV_PAGE.<br />

<strong>JHeadstart</strong> Developer’s <strong>Guide</strong> Using the <strong>JHeadstart</strong> Addins 4 - 27

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

Saved successfully!

Ooh no, something went wrong!