Chapter Index

Chapter Index

index.fm Page 699 Monday, April 2, 2007 12:46 PM Chapter Index A Action methods, roles of, 80 AbstractFacesBean, 580 Action states, 577 accept attribute, 101 actionListener attribute, 92, 285 h:form, 104 h:command and h:commandLink, 119 acceptcharset attribute, 101 and method expressions, 69, 396 h:form, 104 MethodBinding object, 385 Accept-Language value, 45 ActionLogger class, 286 Access control application: ActionMethodBinding, 386 directory structure for, 513 Actions, 275 messages.properties, 516 ActionSource interface, 361, 385, 387, 402 noauth.html, 514 ActionSource2 interface, 359, 361, 403 UserBean.java, 515 addDataModelListener(DataModelListener web.xml, 513–514 listener), 214 accesskey attribute, 101, 109 Address book application, EJBs, 606 h:command and h:commandLink, 120 ADF Faces components set (Oracle), 613 h:outputLink, 123 Ajax: selection tags, 132 basic, with an XHR object and a AccordionRenderer class, 551 servlet (application), 530–532 action attribute, 71 components, 546–554 h:command and h:commandLink, 119 Direct Web Remoting (DWR), 543–546 method expressions, 69, 73, 396 form completion, 534–537 MethodBinding object, 385 fundamentals of, 530–533 Action events, 33, 275–284 hybrid components, 546–551 firing, 268, 418–418 JSF-Rico accordion hybrid, 548–551 Action listeners, 385 realtime validation, 537–542 compared to actions, 275 Rico accordion, 546–551 699 index.fm Page 700 Monday, April 2, 2007 12:46 PM 700 Index Ajax (cont): arg attribute, creditCardValidator, 659 transmitting JSP tag attributes to Arithmetic operators, 68 JavaScript code, 552–554 ArrayDataModel, 197 Ajax4jsf, 554–568 ASP.NET, 3 defined, 554 Attribute interface, 483 homepage, 554 Attribute map, 93, 361 implementing form completion with, attribute tag, 92 555–558 Attributes interface, 483 implementing realtime validation Authentication test application: with, 558–568 login.html, 512 AjaxFaces, 571 welcome.jsp, 511–512 aliasBean (MyFaces component), 614 AuthorSearchBean.java, 521–522 alt attribute, 101, 109 autocomplete attribute, 109 h:commandLink, 120 h:graphicImage, 118 B Alternate view technologies, 571, 585–596 Backing beans, 39, 53–54 Facelets custom tags, 594–596 getScoreComponent method, 54 JSF tags, using, 590–592 BackingBean.java, 262–264 jsfc attribute, 587–590 Basic authentication, 507 page composition with templates, BasicAttributes interface, 483 592–594 BasicAttributes object, 480 XHTML views, 585–587 BEA Workshop Studio, 21 Alternative renderers, 30 Beans: Amazon E-Commerce Service, 517 backing, 39 Amazon Web Services, 516–517 chaining definitions, 61–62 answerAction method, QuizBean class, 79 compatible scopes, 62 Ant, 671 configuring, 57–63 automation of the build process with, customizing in a GUI builder, 38 24–25 defined, 8, 37–39 installing a web application with, 27 definitions, chaining, 61–62 Apache Commons Validator project, 572, initializing lists and maps, 59–60 659 methods, 40 Apache MyFaces components, 612–614 naming pattern for property getters library, 653, 680 and setters, 40 Apache Shale project, 666, See Shale properties, 39–41 (Apache) property values, setting, 58–59 Applet example, index.jsp, 626–627 scopes, 54–57 Applets, 625–627 application scope, 56 chart applet, 627 life cycle annotations, 57 Application class, 362 request scope, 56 Application deployment, 688 session scope, 54–56 Application interface, 386, 404 session, 39 Application scope, 56, 66 string conversions, 62–63 applicationScope parameter, 67 uses of, 39 Apply Request Values phase, 33, 219, 238, value expressions, 41–42 295 syntax of, 64–69 immediate events, firing of, 287 beginEdit method, 609 JSF life cycle, 268–269 index.fm Page 701 Monday, April 2, 2007 12:46 PM Index 701 bgcolor attribute: Book viewer with includes: h:dataTable, 176 bookHeader.jsp, 330 h:panelGrid, 163 book.jsp, 330 Bill pay wizard, 573–575 bookMenu.jsp, 331 Bill payment dialog, entering, 576 directory structure of, 329 Binary data application: Book.java, 324–325 BinaryData.java, 632 boolean (type), properties of, 40 BinaryPhaseListener.java, 637–638 border attribute, 101 BinaryServlet.java, 629, 631–632 h:dataTable, 176 ChartData.java, 633–636 h:panelGrid, 163 ChartRenderer.java, 630–631 h:selectOneRadio and index.jsp, 630 h:selectManyCheckbox, 135 BinaryData.java, 632 selection tags, 132 BinaryPhaseListener.java, 637–638 Brackets, 64–65 BinaryServlet.java, 629, 631–632 buffer (MyFaces component), 614 binding attribute, 94, 97–99, 109, 117 Build file, 25 corejsf:spinner, 358 build.properties, 26–27 h:column, 178 build.xml, 25–26 h:command and h:commandLink, 120 Business logic, 12 h:dataTable, 177 Buttons, 119–120 h:form, 104 byte validator, Struts, 668 h:graphicImage, 118 h:message and h:messages, 158 C h:outputLink, 123 C#, support for properties, 40 h:panelGrid, 164 Cagatay Civici’s client-side validation h:panelGroup, 165 package, 668 selection tags, 132 calendar (MyFaces component), 613 Book class, 319–320 captionClass attribute, 180 Book viewer application, 316–339 h:dataTable, 176 book bean properties, 318–319 h:panelGrid, 164 bookContent.jsp, 331 Captions, 178–181 Book.java, 324–325 captionStyle attribute, 180 book.jsp, 322–323 h:dataTable, 176 common content inclusion, 326 h:panelGrid, 164 content inclusion in JSP-based cellpadding attribute: applications, 326–327 h:dataTable, 176 directory structure, 322 h:panelGrid, 163–164 with extended tile directory structure, cellspacing attribute: 337 h:dataTable, 176 book.jsp, 339 h:panelGrid, 163–164 headerMenuContentLayout.jsp, 338 ChangeLocaleBean class, 292–293, 294 tiles.xml, 338 chapterKeys property, book viewer, 319 faces-config.xml, 323–324 charset attribute, 101 JSF-specific considerations, 327–328 h:command button and h:commandLink, 119 messages.properties, 325 h:outputLink, 123 monolithic JSF pages, 320–321 Chart applet, 627 styles.css, 325–326 ChartData.java, 633–636 ChartRenderer.java, 630–631 index.fm Page 702 Monday, April 2, 2007 12:46 PM 702 Index Checkboxes, 133–135 Component trees, 30 checkPassword method, 69 Components: Child components: showing/hiding, 653–654 and facets, 408 validating relationships between, 669 map of, 360 Components application: Choice format, 44 directory structure for, 183 Class.getResourceAsStream, 678 faces-config.xml, 185 clearCityAndState method, 557 index.jsp, 183–185 Client-side validation tag, writing, messages.properties, 186 658–666 Composite expressions, 68–69 Client-side validator application: com.sun.jndi.ldap.LdapCtxFactory, 489 CreditCardValidator.java, 661–663 Conditional rendering, JSF HTML tags, index.jsp, 665–666 100–101 UIValidatorScript.java, 663–665 Configuration file, locating, 673 Client-side view state, propagating, Configuration information management, 542–543 483–504 cn attribute, LDAP, 474 configuring a bean, 484–485 cols attribute, 109–110 container-managed resources, 487–491 Column headers and footers, specifying, external context, 486–487 178–181 Connection object, 451 columnClasses attribute, 189, 190 Container-managed authentication and h:dataTable, 176, 189 authorization, 505–516 h:panelGrid, 163–164 Container-managed resource, 462–463 Columns, applying styles to, 189 Context interface, 482 columns attribute, h:panelGrid, 163 Conversation scope, 608–609 com.corejsf package, 8 Conversion, 219–220 com.corejsf.CreditCard, 257 custom converters, programming com.corejsf.message, 43 with, 240–254 com.corejsf.Spinner, 388 of numbers and dates, 221–222 com.corejsf.TableData, 173 Conversion error messages, standard, 229 com.corejsf.UserBean, 17 Conversion errors, 225–230 com.corejsf.util, 247–248 custom error message, using, 228 com.corejsf.util.Messages, 248 error messages, displaying, 226–228 Command buttons, using, 121–122 reporting, 245 Command links, using, 125–130 standard conversion error messages, commandButton, 95 changing the text of, 228–230 commandLink, 95 convertClientId method, 390 Common layouts, 315–316 convertDateTime, 92 Commons file upload library (Apache), Converter application, 230–233 614 CreditCardConverter.java, 241–243 Commons logging (Apache), 691 CreditCard.java, 243 Commons Validator, 668 directory structure of, 231 Compatible bean scopes, 62 index.jsp, 231–232 Component families, 388–389 Messages.java, 248–250 of standard component classes, 389 messages.properties, 233 Component tag classes, responsibilities PaymentBean.java, 233 of, 376 result.jsp, 232–233 index.fm Page 703 Monday, April 2, 2007 12:46 PM Index 703 converter attribute, 97–99, 109, 117, 224 Custom converter application, 250–254 h:outputLink, 123 Custom converter application (and selection tags, 132 saving state): Converter interface, 240, 245 CreditCardConverter.java, 438–440 Converter object, 260 directory structure of, 437 ConverterELTag, 434–435 faces-config.xml, 440–441 ConverterException, 240–241, 245, 246 result.jsp, 437–438 converterMessage attribute, 97, 109, 228 Custom converter classes, implementing, selection tags, 132 240–254 Converters, 92 directory structure of, 251 and attributes, 223–224 faces-config.xml, 253 defined, 240 index.jsp, 251–252 specifying, 243–245 messages.properties, 250, 254 and spinner component, 369–370 PaymentBean.java, 254 supplying attributes to, 260–261 result.jsp, 252 convertNumber, 92 Custom converter tags, 432–441 cookie parameter, 67 converter.tld, 432 Cookies, 55 CreditCardConverterTag.java, 434 coords attribute, 101 custom error message, using, 228 h:commandLink, 120 Custom validator application: h:outputLink, 123 directory structure of, 443 Core Java 2 (Horstmann/Cornell), 4, 62, faces-config.xml, 446–447

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    25 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us