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.

As you can see, the buttons are included within the actions facet that is printed by the<br />

FORM_PAGE_CONTENT template, which defaults to<br />

default/page/formPageContent.vm. So, let's customize this template and add the<br />

custom button to it.<br />

Attention: Group-level buttons are not always generated through the<br />

FORM_PAGE_CONTENT template. This template is used when there is only<br />

one group displayed on the page, in which case the group-level buttons are<br />

printed on the same level as the page level Save button. When multiple groups<br />

are displayed on a page, the FORM_GROUP_BUTTONS or<br />

TABLE_GROUP_BUTTONS templates are used, depending on the group<br />

layout style.<br />

• Open default/page/formPageContent.vm and Save As<br />

custom/page/EmployeesFormPageContent.vm.<br />

• In the in the template, locate the place where you<br />

want to insert the custom button (before, in between, or after the other buttons).<br />

• Go to the Employees.jspx page, and copy the section of the<br />

custom button. Paste it in the desired location in the panelButtonBar of<br />

EmployeesFormPageContent.vm.<br />

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

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

Saved successfully!

Ooh no, something went wrong!