Core JavaServer Faces by David Geary, Cay S. Horstmann

By David Geary, Cay S. Horstmann

JavaServer Faces (JSF) is the traditional Java EE expertise for development internet person interfaces. It presents a robust framework for constructing server-side functions, permitting you to cleanly separate visible presentation and alertness good judgment. JSF 2.0 is a massive improve, which not just provides many helpful gains but in addition enormously simplifies the programming version by utilizing annotations and “convention over configuration” for universal tasks.

 

To assist you quick faucet into the facility of JSF 2.0, the 3rd version of Core JavaServer™ Faces has been thoroughly up to date to make optimal use of the entire new gains. The ebook includes

  • Three absolutely new chapters on utilizing Facelets tags for templating, development composite parts, and constructing Ajax applications
  • Guidance on development strong functions with minimum hand coding and greatest productivity–without requiring any wisdom of servlets or different low-level “plumbing”
  • A entire clarification of the fundamental construction blocks–from utilizing general JSF tags, to operating with facts tables, and changing and validating input
  • Coverage of complicated initiatives, corresponding to occasion dealing with, extending the JSF framework, and connecting to exterior services
  • Solutions to numerous universal demanding situations, together with notes on debugging and troubleshooting, as well as implementation info and dealing code for positive aspects which are lacking from JSF
  • Proven ideas, tricks, information, and “how-tos” enable you use JSF successfully on your improvement projects

Core JavaServer™ Faces, 3rd Edition, presents every thing you must grasp the strong and time-saving positive aspects of JSF 2.0 and is the suitable consultant for programmers constructing Java EE 6 internet apps on Glassfish or one other Java EE 6-compliant program servers, in addition to servlet runners comparable to Tomcat 6.

Show description

Read Online or Download Core JavaServer Faces PDF

Best system administration books

Java Performance and Scalability: Server-Side Programming Techniques

This e-book was once written with one aim in brain: to supply Java programmers with the services had to construct effective, scalable Java code. the writer stocks his event in server-side functionality tuning via measured functionality exams, known as optimizations. each one optimization discusses concepts to enhance the functionality and scalability of your code.

Deploying Microsoft Forefront Protection 2010 for Exchange Server (It Professional Series)

Get targeted, real-world advice for making plans and imposing leading edge security for alternate Server--and support defend firm email from viruses, junk mail, phishing, and coverage violations. Guided through key contributors of the Microsoft leading edge crew, you are going to delve into procedure parts, gains, and features, and step via crucial making plans and layout issues.

Additional resources for Core JavaServer Faces

Example text

In this book, we always use h for the HTML tags and f for the core tags. A J S F p a g e is similar to an H T M L form. N o t e the following differences: • Your p a g e m u s t be p r o p e r l y formatted X H T M L . Unlike a browser, the J S F i m p l e m e n t a t i o n is not forgiving of syntax errors. • • You use h:head, h:body, and h:form instead of head, body, and form. Instead of using the familiar i nput H T M L tags, use h: i nputText, h: i nputSecret, and h:commandButton. name}"/> That feature is intended to facilitate page authoring in a web design tool.

14. 15. 16. 17. 18. 19. war and a directory structure that follows a standardized layout: XHTML files resources/ CSS files, JavaScript, images WEB-INF/ servlet and JSF configuration files — classes/ class files META-INF/ application server configuration files lib/ I library files F o r e x a m p l e , the W A R file of our s a m p l e application has the directory structure s h o w n in Figure 1 - 3 . corejsf. NOTE: When you use Tomcat or another servlet runner, the l i b directory contains the JAR files of the JSF implementation.

Figure 1-11 gives a high-level overview of the JSF architecture. A s y o u can see, the JSF f r a m e w o r k is responsible for interacting with client devices, and it provides tools for tying together the visual presentation, application logic, and business logic of a w e b application. However, the scope of JSF is restricted to the presentation tier. Database persistence, w e b services, and other backend connections are outside the scope of JSF. - Servlet Container Client Devices Database Web Service a / Figure 1 - 1 1 High-level overview of t h e J S F f r a m e w o r k JSF Framework Services Here are the m o s t i m p o r t a n t services that the JSF f r a m e w o r k provides: • M o d e l - v i e w - c o n t r o l l e r architecture—All software applications let users m a n i p u l a t e certain data, such as s h o p p i n g carts, travel itineraries, or w h a t e v e r data is required in a particular p r o b l e m d o m a i n .

Download PDF sample

Rated 4.89 of 5 – based on 5 votes