Muutke küpsiste eelistusi

Seam 2.x Web Development [Pehme köide]

  • Formaat: Paperback / softback, 300 pages, kõrgus x laius: 235x191 mm
  • Ilmumisaeg: 27-Apr-2009
  • Kirjastus: Packt Publishing Limited
  • ISBN-10: 184719592X
  • ISBN-13: 9781847195920
Teised raamatud teemal:
  • Pehme köide
  • Hind: 43,74 €*
  • * saadame teile pakkumise kasutatud raamatule, mille hind võib erineda kodulehel olevast hinnast
  • See raamat on trükist otsas, kuid me saadame teile pakkumise kasutatud raamatule.
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 300 pages, kõrgus x laius: 235x191 mm
  • Ilmumisaeg: 27-Apr-2009
  • Kirjastus: Packt Publishing Limited
  • ISBN-10: 184719592X
  • ISBN-13: 9781847195920
Teised raamatud teemal:
Having developed enterprise Java applications since 2001, the author's experience enables him to provide a clear incremental approach to web development with Seam. Initially the book introduces Seam using Java Server Pages (JSP) as the view technology so that readers can quickly learn the key concepts behind Seam. Additional technologies used within Seam applications are then introduced chapter by chapter with each chapter building on the material previously learned. The book describes each technology, providing working examples and source code for each. This is not a dry Seam reference book, but an exciting journey learning Seam, starting at the basics and progressing by the end of the book to more advanced enterprise features. This book is for Java EE application developers who are new to Seam and interested in developing with Seam 2.x. You will need a basic understanding of Java EE and also to be aware of EJB3, although you do not need to know it in any detail. Experience with JBoss AS would be great, but all you really need is to be comfortable using any application server. Knowledge of AJAX and JavaScript would also be beneficial, although it is not necessary.
Preface 1(6)
Chapter 1 Introductionto Seam
7(16)
What is Seam?
7(6)
Why use Seam?
13(1)
Seam requirements
13(1)
Installing JBoss Application Server
14(1)
Starting the JBoss Application Server
15(1)
Installing Seam
16(1)
Testing our Seam installation
17(3)
Start the JBoss Application Server
18(1)
Deploy the sample application
18(1)
Run the sample application
18(2)
Summary
20(3)
Chapter 2 Developing Seam Applications
23(28)
Seam application architecture
23(1)
Seam components
24(1)
Object Injection and Outjection
25(1)
Example application
26(14)
WAR file deployment descriptors
31(2)
EAR file deployment descriptors
33(1)
Application layout
34(1)
Testing the application
35(2)
Building and deploying the application
37(3)
Seam data validation
40(8)
Data validation
40(7)
The JSF messages collection
47(1)
Building and testing the validating Seam calculator
48(2)
Summary
50(1)
Chapter 3 Seam Page Flow
51(18)
Simple navigation
51(1)
Seam style navigation
52(5)
Defining a page flow in pages.xml
54(1)
>page< element
54(1)
>navigation< element
55(1)
>rule< element
55(1)
Error handling
56(1)
Executing code before rendering pages
57(1)
A working example
57(10)
>s:selectItems/< and >s:convertEnum/<
61(2)
Rendering the options in the sample application
63(3)
Running the sample application
66(1)
Seam JPDL navigation
67(1)
Summary
67(2)
Chapter 4 Facelets
69(24)
What is Facelets?
69(1)
Why Facelets? Why not JSP?
70(6)
Templating
70(3)
Template parameters
73(1)
Performance
74(1)
EL functions
74(1)
XHTML
75(1)
No scriptlets
76(1)
Obtaining and installing Facelets
76(1)
Configuring a web application for Facelets
77(5)
Changes in the web.xml file
77(1)
Changes in the faces-config.xml file
78(1)
Example Facelets files from the previous chapter
78(4)
SeamGen
82(2)
Creating the Vacation Planner application using SeamGen
84(4)
Seam debug page
88(3)
Summary
91(2)
Chapter 5 Testing Seam Applications
93(12)
Overview of Seam application testing
93(1)
TestNG
93(3)
Component testing
96(2)
Testing the user interface
98(3)
Seam component testing
101(1)
Mocking Seam components
102(2)
Summary
104(1)
Chapter 6 RichFaces
105(24)
Obtaining RichFaces
105(1)
Configuring an application for RichFaces
105(2)
Add JAR filesto the web application
106(1)
Configuring the application's XML resources
106(1)
RichFaces controls
107(20)
>rich:calendar/<
108(1)
JavaScript methods
109(1)
>rich: panel/<
110(1)
JavaScript methods
110(1)
>rich:modalPanel/<
111(1)
JavaScript methods
112(1)
>rich:simpleTogglePanel/<
113(1)
JavaScript methods
114(1)
>rich:fileUpload/<
115(3)
JavaScript methods
118(1)
>rich:gmap/<
119(2)
JavaScript methods
121(1)
>rich:dataTable/<
122(4)
JavaScript methods
126(1)
Summary
127(2)
Chapter 7 Database Persistence
129(38)
Overview of database persistence
130(2)
How SeamGen helps with persistence
132(8)
Persisting Java entitiesto the database
140(3)
Retrieving Java entities from the database
143(2)
Integrating Java entities with Facelets
145(3)
Relationships between entities
148(10)
One-to-one relationships
148(1)
One-to-many and many-to-one relationships
149(8)
Many-to-many relationships
157(1)
Performing CRUD operations on entities
158(1)
The Seam application framework
159(7)
Home objects
159(1)
Accessing home objects from Facelets
160(1)
XML definition of home objects
161(2)
Query objects
163(1)
Accessing query objects from Facelets
164(1)
XML definition of query objects
165(1)
Summary
166(1)
Chapter 8 Seam Conversations
167(20)
Component scope
167(5)
Local variables
168(1)
HTTP session data
168(2)
Global variables
170(2)
Seam component scope
172(2)
Defining the scope of a Seam component
172(2)
What are conversations?
174(8)
Starting a conversation
175(1)
Automatically starting a conversation when a page is viewed
176(1)
Ending a conversation
176(1)
Automatically ending a conversation when a page is viewed
177(1)
Propagating conversations between Windows
178(1)
Propagating conversations
179(1)
Viewing conversations
179(3)
Conversation configuration
182(1)
Conversation parameter
182(1)
Conversation timeout
182(1)
Concurrent request timeout
183(1)
Natural conversations
183(1)
Setting up a natural conversation
184(1)
Summary
184(3)
Chapter 9 Seam and AJAX
187(20)
What is AJAX?
187(1)
AJAX and the Seam Framework
188(1)
Configuring Seam applications for Seam Remoting
188(11)
Configuring Seam Remoting server side
189(1)
Configuring Seam Remoting client side
190(2)
Invoking Seam components via Remoting
192(4)
Debugging Seam Remoting
196(1)
The org.jboss.seam.remoting.remoting component
196(1)
The >remoting:remoting< component
196(2)
Logging
198(1)
Changing the Please wait message
199(1)
AJAX4JSF
199(6)
Configuring an application for AJAX4JSF
200(1)
AJAX4JSF tags
200(1)
>a4j:commandButton /<
201(2)
>a4j:commandLink /<
203(1)
>a4j:poll /<
203(2)
Summary
205(2)
Chapter 10 Security
207(32)
User authentication
208(9)
Security authenticator
208(1)
Persisting user information
209(3)
Creating an authenticator
212(2)
Securing web pages
214(1)
Creating a logon form
215(1)
Redirectingto the requested page after login
216(1)
User roles
217(5)
Implement a role class
218(1)
Add required Seam annotations
219(1)
Assign a set of rolesto a user
219(2)
Restricting user interface access via roles
221(1)
Auditing security events
222(3)
CAPTCHAs
225(3)
The Seam identity manager API
228(4)
Creating a user with the identity manager
229(1)
Specifying security rules
229(1)
Defining security roles with rules
230(2)
OpenID
232(5)
Configuring a Seam web applicationto support OpenID
233(1)
Configure an OpenID phase listener
233(1)
Ensure that the correct JAR files are on the application's classpath
233(1)
Write a Logon form
234(1)
Configure page redirection after an OpenID logon
235(1)
The OpenID logon process
236(1)
Summary
237(2)
Chapter 11 Enterprise Features
239(26)
Internationalization
239(8)
Defining the application languages
240(1)
Write application-specific strings
241(1)
Display language-specific strings
242(1)
Dynamically changing the localization
243(1)
Persisting the localization settings
244(1)
SeamGen support for localization
245(1)
Displaying Hibernate Validator messages
245(2)
URL rewriting
247(2)
Enabling URL rewriting
248(1)
Seam events
249(2)
Raising events
249(1)
Raising events with @RaiseEvent
249(1)
Raising events with org.jboss.seam.core.Events
250(1)
Observing events
250(1)
PDF document generation
251(6)
PDF required configuration
251(1)
Generating PDFs
252(1)
>p:document /<
252(2)
>p:paragraph /<
254(1)
>p:text /<
254(1)
>p:font /<
255(1)
>p:table /< and >p:cell /<
255(1)
>p:html /<
256(1)
Email
257(5)
Configuring the SMTP settings
257(2)
Writing an email template
259(1)
>m:from /<
259(1)
>m:to /<
259(1)
>m:subject /<
260(1)
>m:body /<
260(1)
>m:attachment /<
260(1)
Sending an email
261(1)
The future of Seam
262(1)
Summary
263(2)
Appendix: JBoss Tools
265(8)
Overview of JBoss Tools
265(1)
Installing JBoss Tools
266(1)
Creating Seam projects
267(2)
Managing Seam projects
269(2)
JSP / Facelet editor
270(1)
Pages.xml editor
270(1)
Components.xml editor
271(1)
Running Seam projects
271(1)
Summary
272(1)
Index 273
David Salter is an enterprise software architect who has been developing software professionally since 1991. His relationship with Java goes right back to the beginning, using Java 1.0 for writing desktop applications and applets for interactive web sites. David has been developing Enterprise Java Applications using both the J2EE standards and open source solutions for the last five years. David runs the Java community web site Develop In Java, a web site for all levels of Java developers.