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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12.4. Creating an Item with Display Type Flex Region<br />

By defining a Flex Region in the Application Definition, the flex items will always be<br />

displayed in their own visual region. You can control how this region is displayed<br />

relative to the standard items as we have seen above.<br />

Now, if you want to display flex items within the same visual region as standard items,<br />

you can use a special item with Display Type “flexRegion” as the place holder for the<br />

flex items defined at runtime. Uncheck the checkbox Bound to Model Attribute for this<br />

item, and set Display In Table Layout to false, since flex items cannot be displayed in a<br />

table, only in a table overflow area.<br />

If we now generate again and run the application, the flex items appear seamlessly with<br />

the standard items, as shown in the screen shot below.<br />

Note that you can define an unlimited number of Flex Regions and Items with Display<br />

Type “flexRegion” in a group.<br />

<strong>JHeadstart</strong> Developer’s <strong>Guide</strong> Runtime Page Customizations 12 - 11

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

Saved successfully!

Ooh no, something went wrong!