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.

in one of the loaded faces-config files under the name “jhsPageLifecycle”. By default,<br />

<strong>JHeadstart</strong> generates the following managed bean definitions in the JhsCommonbeans.xml:<br />

The second managed bean named “jhsWizardPageLifecycle” is not used by default but is<br />

generated for your convenience. This second bean also illustrates why using the<br />

technique of looking up the PageLifecycle class through a managed bean definition is so<br />

powerful: you can configure specific behaviors of the class without creating a subclass by<br />

specifying managed properties. For example, you can configure the “Transaction<br />

Completed” message or whether model validation should be performed.<br />

By default, the generated jhsPageLifecycle managed bean references the<br />

JhsPageLifecycle class because this is the default value of the service-level property<br />

“Page Lifecycle class”. If you want to use a custom subclass, you can do so by creating a<br />

java class that extends JhsPageLifecycle and specify the name of this subclass as the<br />

value of the Page Lifecycle Class property.<br />

If you want to use a specific PageLifecycle class for one specific group rather than the<br />

whole application, you can do this by setting the group-level Page Lifecycle class<br />

property. Unlike the service-level property by the same name, this property can contain<br />

an EL expression that references your custom lifecycle managed bean definition.<br />

The JhsPageLifecycle class, together with the bean classes in the<br />

oracle.jheadstart.controller.jsf.bean package form the heart of the <strong>JHeadstart</strong><br />

Runtime, together they implement the sophisticated runtime behaviors you can generate.<br />

<strong>JHeadstart</strong> Developer’s <strong>Guide</strong> JSF-ADF Page Lifecycle 14 - 9

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

Saved successfully!

Ooh no, something went wrong!