Digital Java EE 7 Web Application Development by Peter Pilgrim

Digital Java EE 7 Web Application Development by Peter Pilgrim

Author:Peter Pilgrim [Pilgrim, Peter]
Language: eng
Format: epub, azw3, pdf
Tags: Computers & Technology, Programming, Programming Languages, Java, Web Development & Design, JavaScript, Reference
Amazon: B015T0Z97E
Publisher: Packt Publishing
Published: 2015-09-28T18:30:00+00:00


Capturing the lifecycle of flow scoped beans

Since the CDI container manages the flow scoped beans, they can participate normally in the contextual lifecycle. We can annotate a method with @PostConstruct in order to initialize the bean, acquire a database resource, or compute cacheable data. Likewise, when the flow goes out of scope, we can annotate a method with @PreDestroy.

Declarative and nested flows

Up to now, we have seen the implicit flow in action. Implicit flow is very straightforward for the simplest flow, which performs like a basic web wizard where the user is able to navigate linearly, going forward and backward. It can also use random access to navigate to pages.

If we want to take Faces Flow further, then we must delve into the XML flow definition, but first let us define some terms.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.