Managed Beans III (Advanced Features)
Click on one of the following links.
Unchanged banking example from the Managed Beans I lecture.
Included here only to compare to bank-lookup2.jsf, which uses
session scope instead of request scope.
Similar to the previous banking example, but uses session scope.
Visit the input form in the same browser session and it will "remember" your ID.
Similar to the previous banking example, but in addition to session scope,
it uses redirects instead of forwards to go to the results pages.
Example that uses the HttpServletResponse object to do
outside-of-JSF redirects, making an interface that lets you search
Google, Bing, Yahoo, etc.
Similar to the original banking example, but uses dependency injection
for the lookup service, so that it is easier to change the lookup service
used (e.g., from simple hard-coded one to real one that uses a database) without
changing the any of the code in the main class. If you want fancy dependency injection,
JSF 2 also has good integration with Spring.
All code from the
coreservlets.com J2EE tutorials: JSF 2.2, PrimeFaces, Java 7 programming, Java 8 lambdas and streams, Hadoop, Ajax with jQuery, GWT, Spring, Hibernate, JPA,
SOAP-based and RESTful Web Services, Android development, servlets, and JSP. There are also
live instructor-led training courses on
the same Java EE topics: JSF 2.2, PrimeFaces, Java 7 programming, Java 8 lambdas and streams, Hadoop, Ajax with jQuery, GWT, Spring, Hibernate, JPA,
SOAP-based and RESTful Web Services, Android development, servlets, and JSP.
Email email@example.com to inquire about customized
versions of these courses taught onsite at your organization.
Also see the JSF 2.2 tutorial, the
and information about Marty Hall, the training course instructor.