Master the Java EE 8 and JSF (JavaServer Faces) APIs and web framework with this practical, projects-driven guide to web development. This book combines theoretical background with a practical approach by building four real-world applications. By developing these JSF web applications, you'll take a tour through the other Java EE technologies such as JPA, CDI, Security, WebSockets, and more.
In Practical JSF in Java EE 8, you will learn to use the JavaServer Faces web framework in Java EE 8 to easily construct a web-based user interface from a set of reusable components. Next, you add JSF event handling and then link to a database, persist data, and add security and the other bells and whistles that the Java EE 8 platform has to offer.
After reading this book you will have a good foundation in Java-based web development and will have increased your proficiency in sophisticated Java EE 8 web development using the JSF framework.
What You Will Learn
- Use the Java EE 8 and the JavaServer Faces APIs to build Java-based web applications through four practical real-world case studies
- Process user input with JSF and the expression language by building a calculator application
- Persist data using JSF templating and Java Persistence to manage an inventory of books
- Create and manage an alumni database using JSF, Ajax, web services and Java EE 8's security features.
Who This Book Is For
Those new to Java EE 8 and JSF. Some prior experience with Java is recommended.
Inhaltsverzeichnis
Part I: TinyCalculator Project. - 1. TinyCalculator. - 2. Foundations. - 3. JavaServer Faces. - 4. Expression Language. - 5. HTML Friendly Markup. - 6. Configuration files. - 7. Testing with Selenium. - 8. Recap TinyCalculator. - Part II: Books Project. - 9. Preparing for Java EE 8. - 10. Introducing the Books Application. - 11. Starting the Books App. - 12. Java Persistence API. - 13. JSF Templating. - 14. Becoming International. - 15. Bean Validation. - 16. Contexts and Dependency Injection. - 17. Conversation Scope. - 18. Links. - 19. Responsive Design. - 20. Summary and Perspective. - Part III: Intermezzo Project. - 21. Intermezzo. - 22. JSF Lifecycle revised. - 23. Repetitive Structures. - 23. JSF and BeanValidation. - Part IV: Alumni Project. - 24. Alumni. - 25. Validation. - 26. Ajax. - 27. Building Composite Components. - 28. Secure Passwords. - 29. Data Facade. - 30. Activation Mail. - 31. Cleanup (or Scheduled Tasks). - 32. Authentication and Authorization. - 33. Account Handling. - 34. Classroom Chat (WebSockets). - 35. Changing Look and Feel. - 36. Constants Handling. - Afterword. - Appendix A. - Appendix B. - Appendix C. - Appendix D. - Appendix E.