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.

managed bean Hashmap called createModes, with the name of the Create action<br />

binding as the key, and Boolean.TRUE as the value. As a result of this, the following<br />

expression can be used to check whether the Departments group is in create mode:<br />

#{createModes.CreateDepartments}<br />

Note that <strong>JHeadstart</strong> always suffixes the name of the Create binding with the group<br />

name, to prevent duplicate binding names when multiple groups are displayed on the<br />

same page.<br />

With this knowledge you will understand the expression that is used to display the<br />

correct page title:<br />

<br />

And the rendered property of the New and Delete buttons looks simply like this:<br />

rendered="#{!createModes.CreateDepartment}"<br />

When you press Save in the form page, the onCommit() in JhsPageLifecycle is called,<br />

and this method will remove all entries from the createModes managed bean Hashmap<br />

when commit is successful.<br />

<strong>JHeadstart</strong> Developer’s <strong>Guide</strong> Generating Page Layouts 5 - 7

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

Saved successfully!

Ooh no, something went wrong!