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.

8.5. Runtime Implementation of Transactional Behaviors<br />

8.5.1. Multi-Row Insert and Delete<br />

Out-of-the-box, JSF only supports editing of existing rows in a table. The Update Model<br />

phase does not support multi-row insert and delete.<br />

To implement multi-row insert and multi-row delete in a table, <strong>JHeadstart</strong> uses the class<br />

oracle.jheadstart.controller.jsf.bean.JhsCollectionModel. This class extends the<br />

default ADF Faces collection model class. The value property of an ADF Faces table<br />

references a managed bean that uses the JhsCollectionModel class, like this:<br />

<br />

The corresponding managed bean definition looks like this:<br />

As you can see, the generic JhsCollectionModel class is configured for specific usage<br />

in the DepartmentsTable using managed property settings. The managed property<br />

newRowCount determines the number of empty rows that will be displayed in the table<br />

that can be used to insert new rows.<br />

<strong>JHeadstart</strong> Developer’s <strong>Guide</strong> Generating Transactional Behaviors 8 - 7

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

Saved successfully!

Ooh no, something went wrong!