reklama - zainteresowany?

JavaServer Faces - Helion

JavaServer Faces
ebook
Autor: Hans Bergsten
ISBN: 978-14-493-7895-0
stron: 608, Format: ebook
Data wydania: 2004-04-22
Księgarnia: Helion

Cena książki: 143,65 zł (poprzednio: 167,03 zł)
Oszczędzasz: 14% (-23,38 zł)

Dodaj do koszyka JavaServer Faces

JavaServer Faces, or JSF, brings a component-based model to web application development that's similar to the model that's been used in standalone GUI applications for years. The technology builds on the experience gained from Java Servlets, JavaServer Pages, and numerous commercial and open source web application frameworks that simplify the development process.In JavaServer Faces, developers learn how to use this new framework to build real-world web applications. The book contains everything you'll need: how to construct the HTML on the front end; how to create the user interface components that connect the front end to your business objects; how to write a back-end that's JSF-friendly; and how to create the deployment descriptors that tie everything together.JavaServer Faces pays particular attention to simple tasks that are easily ignored, but crucial to any real application: working with tablular data, for example, or enabling and disabling buttons. And this book doesn't hide from the trickier issues, like creating custom components or creating renderers for different presentation layers. Whether you're experienced with JSF or a just starting out, you'll find everything you need to know about this technology in this book.Topics covered include:

  • The JSF environment
  • Creating and rendering components
  • Validating input
  • Handling user-generated events
  • Controlling page navigation
  • Working with tabular data
  • Internationalization
  • Integration between JSF and Struts
  • Developing custom renderers and custom components
JavaServer Faces is a complete guide to the crucial new JSF technology. If you develop web applications, JSF belongs in your toolkit, and this book belongs in your library.

Dodaj do koszyka JavaServer Faces

 

Osoby które kupowały "JavaServer Faces", wybierały także:

  • Windows Media Center. Domowe centrum rozrywki
  • Ruby on Rails. Ćwiczenia
  • DevOps w praktyce. Kurs video. Jenkins, Ansible, Terraform i Docker
  • Przywództwo w Å›wiecie VUCA. Jak być skutecznym liderem w niepewnym Å›rodowisku
  • Scrum. O zwinnym zarzÄ…dzaniu projektami. Wydanie II rozszerzone

Dodaj do koszyka JavaServer Faces

Spis treści

JavaServer Faces eBook -- spis treści

  • JavaServer Faces
    • SPECIAL OFFER: Upgrade this ebook with OReilly
    • A Note Regarding Supplemental Files
    • Preface
      • In This Book
      • Audience
        • What You Need to Know
      • Organization
      • About the Examples
      • Conventions Used in This Book
      • How to Contact Us
      • Acknowledgments
    • 1. Introducing JavaServer Faces
      • 1.1. What Is JavaServer Faces?
      • 1.2. How Does JSF Compare to Traditional Technologies?
        • 1.2.1. Less Code in the User Interface Templates
        • 1.2.2. More Modular User Interface Code
      • 1.3. Where Does JSF Fit in the Big Picture?
        • 1.3.1. Using JSF with JSP
        • 1.3.2. Using JSF with Struts and Other Application Frameworks
        • 1.3.3. Using JSF with Enterprise JavaBeans
      • 1.4. What You Need to Get Started
    • 2. JSF Development Process Overview
      • 2.1. Developing an Application with a JSF-Based User Interface
      • 2.2. Developing the Application Backend
      • 2.3. Developing Components and Integration Code
      • 2.4. Developing the User Interface Pages
    • 3. Setting Up the JSF Environment
      • 3.1. Installing the Java Software Development Kit
      • 3.2. Installing the Tomcat Server
        • 3.2.1. Windows Platforms
        • 3.2.2. Unix Platforms (Including Linux and Mac OS X)
      • 3.3. Testing Tomcat
      • 3.4. Installing the Book Examples
      • 3.5. Example Web Application Overview
    • 4. Servlet and JavaServer Pages Basics
      • 4.1. HTTP
        • 4.1.1. Requests in Detail
        • 4.1.2. Responses in Detail
        • 4.1.3. Request Parameters
        • 4.1.4. Request Methods
      • 4.2. Web Application Deployment and Runtime Environment
        • 4.2.1. Web Containers and Servlet Contexts
      • 4.3. Servlets, Filters, and Listeners
        • 4.3.1. Using Request Data
        • 4.3.2. Compiling, Installing, and Running a Servlet
        • 4.3.3. Generating Responses of Different Types
        • 4.3.4. Filters and Listeners
          • 4.3.4.1. Filters
          • 4.3.4.2. Listeners
      • 4.4. JavaServer Pages
        • 4.4.1. JSP Processing
        • 4.4.2. JSP Elements
          • 4.4.2.1. Directive elements
          • 4.4.2.2. Action elements
          • 4.4.2.3. Scripting elements
          • 4.4.2.4. Expression Language expressions
          • 4.4.2.5. JSP comments
        • 4.4.3. Creating, Installing, and Running a JSP Page
      • 4.5. Accessing Application Data
    • 5. Developing the Business Logic and Setting Up Authentication
      • 5.1. Sample Application Overview
      • 5.2. Implementing the Business Logic Classes
        • 5.2.1. The ReportEntry Class
        • 5.2.2. The Report Class
        • 5.2.3. The ReportRegistry and FileReportRegistry Classes
      • 5.3. Authentication and Authorization
        • 5.3.1. Authenticating the User
        • 5.3.2. Controlling Access to Web Resources
    • 6. Creating and Rendering Components
      • 6.1. The Basics
        • 6.1.1. Using JSF Components in a JSP Page
        • 6.1.2. Creating JSF Components
        • 6.1.3. Rendering the View
        • 6.1.4. Saving the View State
        • 6.1.5. Installing and Configuring a JSF Web Application
        • 6.1.6. Running a JSP Page Containing JSF Components
      • 6.2. Binding Components to Model Properties
        • 6.2.1. Using JSF EL Expressions
        • 6.2.2. Using Value Binding Expressions
        • 6.2.3. Converting Between Model and View Data Formats
        • 6.2.4. Creating Objects Automatically as They Are Needed
      • 6.3. Conditionally Render Components
        • 6.3.1. Conditionally Disable Components Using Bean Properties
        • 6.3.2. Conditionally Include Components Using Bean Properties
    • 7. Validating Input
      • 7.1. Dealing with Syntax Errors in User Input
      • 7.2. Using the Standard Validators
        • 7.2.1. Value Bindings for the Report Entry Fields
      • 7.3. Defining Custom Error Messages
      • 7.4. Using a Custom Validator
        • 7.4.1. Registering a Custom Validator
        • 7.4.2. Using a Custom Validator in a JSP Page
        • 7.4.3. Developing a Validator Custom Action
        • 7.4.4. Deploying the Custom Tag Library
        • 7.4.5. An Alternative for the Lazy
      • 7.5. Other Ways to Validate Input
    • 8. Handling Events
      • 8.1. Understanding the JSF Event Model
        • 8.1.1. The Request Processing Lifecycle Phases
      • 8.2. Handling Application Backend Events
        • 8.2.1. Using an Action Method and the Default ActionListener
        • 8.2.2. Using an Action Listener Method or Instance
        • 8.2.3. Specifying When to Fire an Event
      • 8.3. Handling User Interface Events
        • 8.3.1. Triggering an Event by Clicking a Button or a Link
        • 8.3.2. Triggering an Event by Changing a Value
    • 9. Controlling Navigation
      • 9.1. Moving Between JSF Views
        • 9.1.1. Choosing Between Redirect and Direct Rendering
        • 9.1.2. Using a Panel Component for Layout
      • 9.2. Returning a Non-JSF View Response
        • 9.2.1. Linking Non-JSF Resources
        • 9.2.2. Processing JSF Input and Generating a Non-JSF Response
      • 9.3. Returning a JSF View Response to a Non-JSF Request
    • 10. Working with Tabular Data
      • 10.1. Displaying a Read-Only Table
        • 10.1.1. Using Facets
        • 10.1.2. A Word About JSF and Databases
      • 10.2. Processing Row-Specific Events
      • 10.3. Dealing with Large Tables
        • 10.3.1. Sorting the Data
        • 10.3.2. Scrolling Through the Data
        • 10.3.3. Giving the Table Some Style
      • 10.4. Editing Tabular Data
    • 11. Internationalization
      • 11.1. Localizing Application Output
        • 11.1.1. Selecting Localized Text
        • 11.1.2. Formatting Dates and Numbers
        • 11.1.3. Localizing Messages
      • 11.2. Handling Localized Application Input
      • 11.3. Dealing with Non-Western Languages
    • 12. Odds and Ends
      • 12.1. Building a View from Many JSP Files
        • 12.1.1. Using Static Includes for Pages with JSF Components
          • 12.1.1.1. Using one or multiple forms
          • 12.1.1.2. The included files
        • 12.1.2. Using Dynamic Includes for Pages with JSF Components
          • 12.1.2.1. Naming containers for included content
      • 12.2. Combining JSF Views with Other Content
      • 12.3. Dealing with Struts Applications and JSF
        • 12.3.1. Using the Struts-Faces Integration Package
        • 12.3.2. Migrating a Struts Application to JSF
        • 12.3.3. Picking the Right Technology for a New Application
      • 12.4. Programmatically Modifying Components
      • 12.5. Using a PhaseListener
      • 12.6. Debugging and Error Handling Ideas
        • 12.6.1. Using Standard Java Debugging Techniques
        • 12.6.2. Using Standard Web Application Error Handling
        • 12.6.3. Using Client-Side State Saving During Development
        • 12.6.4. Capturing State with a PhaseListener
    • 13. Developing Custom Renderers and Other Pluggable Classes
      • 13.1. Developing Custom Renderers
        • 13.1.1. A Renderer for Encoding Only
          • 13.1.1.1. The Renderer class
          • 13.1.1.2. Registering the renderer
          • 13.1.1.3. The JSP tag handler class
          • 13.1.1.4. Using the custom renderer
        • 13.1.2. A Renderer for Encoding and Decoding
          • 13.1.2.1. The Renderer class
          • 13.1.2.2. Registering the renderer
          • 13.1.2.3. The JSP tag handler class
      • 13.2. Using Other Custom Classes
      • 13.3. Packaging Custom Classes
    • 14. Developing Custom Components
      • 14.1. Extending an Existing Component
        • 14.1.1. The TabbedRenderer Class
        • 14.1.2. The UITabLabel Class
        • 14.1.3. Registering the Component
        • 14.1.4. The JSP Tag Handler Class
      • 14.2. Developing a New Component from Scratch
        • 14.2.1. The TreeModel Class
        • 14.2.2. The UITree Component Class
        • 14.2.3. The TreeRenderer Class
        • 14.2.4. Registering the Component and the Renderer
        • 14.2.5. The JSP Tag Handler Class
    • 15. Developing a Custom Presentation Layer
      • 15.1. The ViewHandler Class
      • 15.2. Using Java Classes as Views
        • 15.2.1. Developing the View Class
        • 15.2.2. Developing the ViewHandler
      • 15.3. Using Pure HTML Templates with XML View Definition Files
        • 15.3.1. Developing the HTML Template and the View Specification
        • 15.3.2. Developing the ViewHandler
    • A. Standard JSF Tag Libraries
      • A.1. JSF Tag Libraries URIs and Default Prefixes
      • A.2. HTML Tag Library Actions
        • A.2.1. Supported HTML 4.01 Attributes
          • <h:column>
          • <h:commandButton>
          • <h:commandLink>
          • <h:dataTable>
          • <h:form>
          • <h:graphicImage>
          • <h:inputHidden>
          • <h:inputSecret>
          • <h:inputText>
          • <h:inputTextarea>
          • <h:message>
          • <h:messages>
          • <h:outputFormat>
          • <h:outputLabel>
          • <h:outputLink>
          • <h:outputText>
          • <h:panelGrid>
          • <h:panelGroup>
          • <h:selectBooleanCheckbox>
          • <h:selectManyCheckbox>
          • <h:selectManyListbox>
          • <h:selectManyMenu>
          • <h:selectOneListbox>
          • <h:selectOneMenu>
          • <h:selectOneRadio>
      • A.3. Core Library Actions
        • <f:actionListener>
        • <f:attribute>
        • <f:convertDateTime>
        • <f:convertNumber>
        • <f:converter>
        • <f:facet>
        • <f:loadBundle>
        • <f:param>
        • <f:selectItem>
        • <f:selectItems>
        • <f:subView>
        • <f:validateDoubleRange>
        • <f:validateLength>
        • <f:validateLongRange>
        • <f:validator>
        • <f:valueChangeListener>
        • <f:verbatim>
        • <f:view>
    • B. JSF Expression Language Reference
      • B.1. Syntax
        • B.1.1. Literals
        • B.1.2. Keywords and Reserved Words
      • B.2. Variables
        • B.2.1. Implicit Variables
      • B.3. Data Types
        • B.3.1. Coercion Rules
      • B.4. Expressions and Operators
        • B.4.1. Operand Evaluation and Coercing Rules
          • B.4.1.1. Property and array accessor operators
          • B.4.1.2. Arithmetic operators
          • B.4.1.3. Relational operators
          • B.4.1.4. Logical operators
          • B.4.1.5. Empty operator
    • C. Standard JSF Components and Render Kits
      • C.1. Component Class Categories
      • C.2. Render-Independent Components
        • C.2.1. Component Interfaces
          • ActionSource
          • EditableValueHolder
          • NamingContainer
          • StateHolder
          • ValueHolder
        • C.2.2. Component Classes
          • UIColumn
          • UICommand
          • UIComponent and UIComponentBase
          • UIData
          • UIForm
          • UIGraphic
          • UIInput
          • UIMessage
          • UIMessages
          • UINamingContainer
          • UIOutput
          • UIPanel
          • UIParameter
          • UISelectBoolean
          • UISelectItem
          • UISelectItems
          • UISelectMany
          • UISelectOne
          • UIViewRoot
        • C.2.3. Model Classes and Interfaces
          • ArrayDataModel
          • DataModel
          • DataModelEvent
          • DataModelListener
          • ListDataModel
          • ResultDataModel
          • ResultSetDataModel
          • ScalarDataModel
          • SelectItem
          • SelectItemGroup
      • C.3. HTML Render Kit Classes
        • C.3.1. Renderer Class
          • Renderer
        • C.3.2. Standard Renderer Behavior
          • Command/Button
          • Command/Link
          • Data/Table
          • Form/Form
          • Graphic/Image
          • Input/Hidden
          • Input/Secret
          • Input/Text
          • Input/Textarea
          • Message/Message
          • Messages/Messages
          • Output/Format
          • Output/Label
          • Output/Link
          • Output/Text
          • Panel/Grid
          • Panel/Group
          • SelectBoolean/Checkbox
          • SelectMany/Checkbox
          • SelectMany/Listbox
          • SelectMany/Menu
          • SelectOne/Listbox
          • SelectOne/Menu
          • SelectOne/Radio
      • C.4. HTML-Specific Component Classes
        • HtmlCommandButton
        • HtmlCommandLink
        • HtmlDataTable
        • HtmlForm
        • HtmlGraphicImage
        • HtmlInputHidden
        • HtmlInputSecret
        • HtmlInputText
        • HtmlInputTextarea
        • HtmlMessage
        • HtmlMessages
        • HtmlOutputFormat
        • HtmlOutputLabel
        • HtmlOutputLink
        • HtmlOutputText
        • HtmlPanelGrid
        • HtmlPanelGroup
        • HtmlSelectBooleanCheckbox
        • HtmlSelectManyCheckbox
        • HtmlSelectManyListbox
        • HtmlSelectManyMenu
        • HtmlSelectOneListbox
        • HtmlSelectOneMenu
        • HtmlSelectOneRadio
      • C.5. Request Processing Lifecycle
        • C.5.1. Restore View
        • C.5.2. Apply Request Values
        • C.5.3. Process Validations
        • C.5.4. Update Model Values
        • C.5.5. Invoke Application
        • C.5.6. Render Response
    • D. Infrastructure API Reference
      • D.1. Package javax.faces
        • FacesException
        • FactoryFinder
      • D.2. Package javax.faces.application
        • Application
        • ApplicationFactory
        • FacesMessage
        • FacesMessage.Severity
        • NavigationHandler
        • StateManager
        • StateManager.SerializedView
        • ViewHandler
      • D.3. Package javax.faces.context
        • ExternalContext
        • FacesContext
        • FacesContextFactory
        • ResponseStream
        • ResponseWriter
      • D.4. Package javax.faces.convert
        • BigDecimalConverter
        • BigIntegerConverter
        • BooleanConverter
        • ByteConverter
        • CharacterConverter
        • Converter
        • ConverterException
        • DateTimeConverter
        • DoubleConverter
        • FloatConverter
        • IntegerConverter
        • LongConverter
        • NumberConverter
        • ShortConverter
      • D.5. Package javax.faces.el
        • EvaluationException
        • MethodBinding
        • MethodNotFoundException
        • PropertyNotFoundException
        • PropertyResolver
        • ReferenceSyntaxException
        • ValueBinding
        • VariableResolver
      • D.6. Package javax.faces.event
        • AbortProcessingException
        • ActionEvent
        • ActionListener
        • FacesEvent
        • FacesListener
        • PhaseEvent
        • PhaseId
        • PhaseListener
        • ValueChangeEvent
        • ValueChangeListener
      • D.7. Package javax.faces.lifecycle
        • Lifecycle
        • LifecycleFactory
      • D.8. Package javax.faces.render
        • Renderer
        • RenderKit
        • RenderKitFactory
        • ResponseStateManager
      • D.9. Package javax.faces.validator
        • DoubleRangeValidator
        • LengthValidator
        • LongRangeValidator
        • Validator
        • ValidatorException
      • D.10. Package javax.faces.webapp
        • AttributeTag
        • ConverterTag
        • FacesServlet
        • FacetTag
        • UIComponentBodyTag
        • UIComponentTag
        • ValidatorTag
      • D.11. Identifiers for Standard JSF Messages
        • javax.faces.component.UIInput.CONVERSION
        • javax.faces.component.UIInput.REQUIRED
        • javax.faces.component.UISelectOne.INVALID
        • javax.faces.component.UISelectMany.INVALID
        • javax.faces.validator.NOT_IN_RANGE
        • javax.faces.validator.DoubleRangeValidator.MAXIMUM
        • javax.faces.validator.DoubleRangeValidator.MINIMUM
        • javax.faces.validator.DoubleRangeValidator.TYPE
        • javax.faces.validator.LengthRangeValidator.MAXIMUM
        • javax.faces.validator.LengthRangeValidator.MINIMUM
        • javax.faces.validator.LengthRangeValidator.TYPE
        • javax.faces.validator.LongRangeValidator.MAXIMUM
        • javax.faces.validator.LongRangeValidator.MINIMUM
        • javax.faces.validator.LongRangeValidator.TYPE
    • E. JSF Configuration File Reference
      • <description>, <display-name>, and <icon>
      • <application>
      • <factory>
      • <component>
      • <converter>
      • <lifecycle>
      • <managed-bean>
      • <navigation-rule>
      • <referenced-bean>
      • <render-kit>
      • <validator>
    • F. Web Application Structure and Deployment Descriptor Reference
      • F.1. Web Application File Structure
        • F.1.1. Placing Java Class Files in the Right Directory
      • F.2. Web Application Deployment Descriptor
        • Reference Section
          • <description>, <display-name>, and <icon>
        • Reference Section
          • <distributable>
        • Reference Section
          • <context-param>
        • Reference Section
          • <filter>
        • Reference Section
          • <filter-mapping>
        • Reference Section
          • <listener>
        • Reference Section
          • <servlet>
        • Reference Section
          • <servlet-mapping>
        • Reference Section
          • <session-config>
        • Reference Section
          • <mime-mapping>
        • Reference Section
          • <welcome-file-list>
        • Reference Section
          • <error-page>
        • Reference Section
          • <jsp-config>
        • Reference Section
          • <resource-env-ref>
        • Reference Section
          • <resource-ref>
        • Reference Section
          • <security-constraint>
        • Reference Section
          • <login-config>
        • Reference Section
          • <security-role>
        • Reference Section
          • <locale-encoding-mapping-list>
        • Reference Section
          • <env-entry>
        • Reference Section
          • <ejb-ref>
        • Reference Section
          • <ejb-local-ref>
        • Reference Section
          • <service-ref>
        • Reference Section
          • <message-destination-ref>
        • Reference Section
          • <message-destination>
        • F.2.1. Example Application Deployment Descriptor
      • F.3. Creating a WAR File
    • About the Author
    • Colophon
    • SPECIAL OFFER: Upgrade this ebook with OReilly

Dodaj do koszyka JavaServer Faces

Code, Publish & WebDesing by CATALIST.com.pl



(c) 2005-2024 CATALIST agencja interaktywna, znaki firmowe należą do wydawnictwa Helion S.A.