Muutke küpsiste eelistusi

Practical JSF in Java EE 8: Web Applications in Java for the Enterprise 1st ed. [Pehme köide]

  • Formaat: Paperback / softback, 480 pages, kõrgus x laius: 254x178 mm, kaal: 9366 g, 82 Illustrations, black and white; XXII, 480 p. 82 illus., 1 Paperback / softback
  • Ilmumisaeg: 30-May-2018
  • Kirjastus: APress
  • ISBN-10: 1484230299
  • ISBN-13: 9781484230299
  • Pehme köide
  • Hind: 57,96 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 68,19 €
  • Säästad 15%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 2-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 480 pages, kõrgus x laius: 254x178 mm, kaal: 9366 g, 82 Illustrations, black and white; XXII, 480 p. 82 illus., 1 Paperback / softback
  • Ilmumisaeg: 30-May-2018
  • Kirjastus: APress
  • ISBN-10: 1484230299
  • ISBN-13: 9781484230299
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.
About the Author xv
About the Technical Reviewer xvii
Acknowledgments xix
Preface xxi
Part I TinyCalculator
1(84)
Chapter 1 TinyCalculator
3(18)
Creating the Application
3(11)
Working with TinyCalculator
14(1)
Managed Beans
14(4)
The Page
18(1)
The Relationship Between Code and View
19(1)
Summary
20(1)
Chapter 2 Foundations
21(14)
Web Applications
21(1)
HTTP
22(2)
HTML
24(2)
CSS
26(1)
JavaScript
27(1)
Java
28(1)
Maven
29(1)
Selenium and Arquillian
29(1)
Servlet
29(4)
Deployment
33(1)
Summary
33(2)
Chapter 3 JavaServer Faces
35(14)
View Definition Language
36(1)
Web vs. Traditional Application
36(3)
JSF Lifecycle Overview
39(2)
JSF Namespaces and Tags
41(2)
Component Tree
43(4)
Navigation
47(1)
Summary
48(1)
Chapter 4 Expression Language
49(8)
Unified Expression Language
49(2)
Value Expression
51(1)
Operators
51(2)
Dot and Square Bracket
53(1)
Method Expression
53(1)
Implicit Objects
53(2)
Summary
55(2)
Chapter 5 HTML-Friendly Markup
57(4)
HTML-Friendly TinyCalculator
57(3)
Summary
60(1)
Chapter 6 Configuration Files
61(8)
pom.xml
61(1)
web.xml
62(2)
faces-config.xml
64(1)
beans.xml
65(1)
persistence.xml
65(1)
glassfish-resources.xml
65(1)
glassfish-web.xml
66(1)
Other Files
67(1)
Summary
67(2)
Chapter 7 Testing with Selenium
69(14)
Selenium Overview
69(1)
Preparing TinyCalculator
70(1)
Creating the Test
71(9)
Unit Test without Selenium
80(2)
Summary
82(1)
Chapter 8 TinyCalculator Recap
83(2)
Part II Books
85(158)
Chapter 9 Preparing for Java EE 8
87(6)
Current Evolution
87(1)
Upgrade the Application Server
88(2)
Payara Server
90(1)
Summary
91(2)
Chapter 10 Introducing the Books Application
93(6)
Books Requirements
93(2)
Development Order
95(2)
Summary
97(2)
Chapter 11 Starting the Books App
99(26)
Page Layout
99(1)
HTML Structure
100(3)
Basic Styling with CSS
103(10)
Design First Data Model
113(2)
First Dialog Box (Repeating Structure)
115(8)
Summary
123(2)
Chapter 12 Java Persistence API
125(20)
Entities
125(5)
Persistence Unit
130(5)
Data Source
135(2)
Entity Manager
137(1)
Service Class
137(5)
Using the CategoryService/lnjection
142(2)
Summary
144(1)
Chapter 13 JSF Templating
145(8)
Templating Books
145(6)
Summary
151(2)
Chapter 14 Going International
153(42)
Internationalization and Localization
153(1)
Welcome Page
154(1)
Message Bundle
154(8)
Naive Welcome Page Implementation
162(2)
Use Paragraphs and <ui:repeat>
164(2)
Language Switcher
166(2)
Localized Content
168(1)
Preparing the Administer Area
169(1)
Include into Page
169(3)
Common Navigation
172(1)
Topics
173(12)
Enhancing the Category Entity
185(6)
The Category Translation Page
191(3)
Summary
194(1)
Chapter 15 Bean Validation
195(6)
Book Entity
196(2)
Book Editor
198(2)
Summary
200(1)
Chapter 16 Contexts and Dependency Injection
201(10)
From new() to CDI
201(3)
Summary
204(1)
Chapter 17: Conversation Scope
205(1)
Multi-page Editor
205(4)
POST and GET Navigation
209(1)
Begin and End the Conversation
210(1)
Summary
210(1)
Chapter 18 Links
211(12)
Internal Reviews
211(2)
External Reviews
213(2)
JSF Links
215(1)
commandLink
215(1)
link
215(1)
outputLink
216(1)
Choosing the Right Link
216(3)
Draw the Conclusion
219(1)
Summary
220(3)
Chapter 19 Responsive Design
223(18)
Making Books Responsive
223(13)
Responsive Pixel Layouts
236(1)
Calculating Sizes
237(1)
Mobile-First and Desktop-First
238(1)
Summary
239(2)
Chapter 20 Summary and Perspective
241(2)
Part III Intermezzo
243(20)
Chapter 21 Intermezzo
245(2)
Chapter 22 JSF Lifecycle Revisited
247(2)
Chapter 23 Repetitive Structures
249(14)
Tag Handler vs. Component
249(5)
Performance Issues
254(8)
Summary
262(1)
Part IV Alumni
263(166)
Chapter 24 Alumni
265(10)
Preparing the Application
265(5)
Registration Form
270(4)
Summary
274(1)
Chapter 25 Validation
275(20)
Bean Validation
275(4)
Creating a Customized Message
279(2)
Details of Customized Messages
281(1)
Null Handling
282(1)
Validation Method
283(1)
Validator
284(1)
Multi-Component Validation
285(6)
Self-Made
291(2)
Summary
293(2)
Chapter 26 AJAX Components
295(6)
Using AJAX for Immediate Feedback
295(5)
Summary
300(1)
Chapter 27 Building Composite Components
301(12)
Transform into a Composition
301(4)
Enable Child Element for the Composition
305(3)
Pass In Validation Method
308(2)
Ubiquitous Input Component
310(2)
Summary
312(1)
Chapter 28 Secure Passwords
313(6)
Hash
313(1)
Security Issues and Mitigation
314(2)
Password Algorithm
316(1)
Summary
317(2)
Chapter 29 Data Facade
319(12)
Abstract Data Service
319(3)
Concrete Facade
322(2)
Account Entity
324(5)
Summary
329(2)
Chapter 30 Activation Mail
331(12)
Config Mail Properties by Code
331(4)
Mail Session
335(4)
Send Activation
339(2)
Summary
341(2)
Chapter 31 Scheduled Tasks
343(6)
Scheduler
343(1)
Delete Query
344(2)
Becoming Asynchronous
346(1)
Summary
347(2)
Chapter 32 Authentication and Authorization
349(30)
Security Basics
349(2)
Basic Authentication and fileRealm
351(10)
Form Login
361(3)
Programmatic Login
364(3)
Programmatic Logout
367(1)
jdbcRealm
367(5)
Custom Realm
372(5)
Summary
377(2)
Chapter 33 Account Handling
379(10)
Micro Service
379(2)
Account Service
381(6)
Testing
387(1)
Summary
388(1)
Chapter 34 Classroom Chat (WebSockets)
389(26)
HTTP Protocol and Alternatives
390(1)
WebSocket
391(1)
Endpoint
392(1)
Simple Chat
393(11)
ClassRoom Chat
404(7)
JSF 2.3 websocket
411(2)
Summary
413(2)
Chapter 35 Changing Look and Feel
415(10)
Resource Library
415(1)
Immediately Change the Look and Feel
416(1)
Read from Resources
417(7)
Summary
424(1)
Chapter 36 Handling Constants
425(4)
Navigation by Strings
425(2)
Importing Constants
427(1)
Summary
427(2)
Appendix A HTML
429(22)
HTML Structure
429(1)
HTML Header
430(1)
HTML Body
430(1)
Page and Text Structure, Linking
431(1)
Forms and Input
432(2)
Tables
434(3)
Tag Completion/Tag Guessing
437(2)
Appendix B Cascading Style Sheets
439(12)
Selectors
442(1)
Type Selector
442(1)
Id Selector
442(1)
Class Selector
442(1)
Attribute Selector
442(1)
Nesting Selector
443(2)
Sibling Selector
445(1)
Box Model
446(3)
Enhanced Styling
449(2)
Appendix C Tag Libraries
451(12)
Pass-through Elements
452(1)
JSF Core Library
452(3)
JSF HTML Library
455(3)
Common Attributes
458(1)
Facelet Templating Tag Library
458(2)
Composite Component Tag Library
460(1)
Pass-through Attributes
461(1)
JSP Standard Tag Library (JSTL)
461(1)
JSTL Functions
462(1)
Appendix D Programming Style
463(4)
Appendix E Bibliography
467(2)
Afterword 469(2)
Index 471
Michael Müller is an IT professional with more than 30 years of experience including about 25 years in the healthcare sector. During this time, he has worked in different areas, especially project and product management, consulting, and software development. He gained international knowledge not only by targeting international markets, but also by leading external teams (from Eastern Europe and India).

Currently, he is the head of software development at the German DRG institute [ http://inek.org]. In this role, he is responsible for Web applications as well as other Java and .NET projects.Web projects are preferably built with Java technologies such as JSF with the help of supporting languages like JavaScript.

Michael is a professional JSF user and a member of the JSR 344 and JSR 372 (JSF) expert groups. Due to his community activities he was invited to join the NetBeans Dream Team and became a member January 2016.