JSF 2.0 Cookbook

Total Page:16

File Type:pdf, Size:1020Kb

JSF 2.0 Cookbook JSF 2.0 Cookbook Over 100 simple but incredibly effective recipes for taking control of your JSF applications Anghel Leonard BIRMINGHAM - MUMBAI JSF 2.0 Cookbook Copyright © 2010 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, Packt Publishing, nor its dealers or distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: June 2010 Production Reference: 1310610 Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK. ISBN 978-1-847199-52-2 www.packtpub.com Cover Image by Prasad Hamine ([email protected]) Credits Author Editorial Team Leader Anghel Leonard Mithun Sehgal Reviewer Project Team Leader Edem Morny Lata Basantani Acquisition Editor Project Coordinator Sarah Cullington Poorvi Nair Development Editor Proofreader Rakesh Shejwal Chris Smith Technical Editor Production Coordinator Arani Roy Shantanu Zagade Indexer Cover Work Hemangini Bari Shantanu Zagade About the Author Anghel Leonard is a senior Java developer with more than 12 years of experience in Java SE, Java EE, and the related frameworks. He has written and published more than 20 articles and 100 tips and tricks about Java technology. Also, he has written two books about XML and Java (one for beginners and one for advanced users) and another book for Packt Publishing, named JBoss Tools 3 Developer Guide. In this time, he has developed web applications using the latest technologies out in the market. In the past two years, he has focused on developing RIA projects for GIS fields. He is interested in bringing as much desktop to the Web as possible; as a result GIS applications present a real challenge to him. I would like to thank my family, especially, my wife! About the Reviewer Edem Morny has been involved in enterprise Java technologies since he got introduced to Java in 2005, using tools and technologies encompassing both the standard JavaEE stack and non-standard ones such as JBoss Seam, Hibernate, and Spring. His experience with JSF includes working with plain JSF, RichFaces, JBoss Seam, and Spring Web Flow's SpringFaces. He has been an active promoter of Java EE, speaking at workshops and seminars of a national scale in Ghana. He is a Senior Developer at the Application Development Center in Accra, Ghana, for an international biometric security solutions company, which is leading the development of Biocryptic Identity Management Systems for the global market. Edem was a technical reviewer for JBoss Tools 3 Developer Guide and JBoss AS 5 Development both published by Packt Publishing. You'll find him blogging at http://edemmorny.wordpress.com. Table of Contents Preface 1 Chapter 1: Using Standard and Custom Converters in JSF 7 Introduction 8 Working with implicit and explicit conversions 10 Standard converters for numbers 12 Standard converters for date and time 15 Converters and NULL values 19 Creating and using a custom converter 22 Using custom converters for h:selectOneMenu 25 Binding converters to backing bean properties 30 RichFaces and standard converters 32 RichFaces and custom converters 34 Instance variables in converters 36 Client-side converters with MyFaces Trinidad 40 Chapter 2: Using Standard and Custom Validators in JSF 51 Introduction 52 Using a standard validator 53 Customizing error messages for validators 55 Creating a custom validator 58 Binding validators to backing bean properties 61 Validating forms with RichFaces rich:beanValidator 63 Validating forms with RichFaces rich:ajaxValidator 65 Apache MyFaces Commons validators 67 Bean validation with f:validateBean 68 Enforcing a value's presence with f:validateRequired 76 Using regular expressions with f:validateRegex 78 Table of Contents Chapter 3: File Management 81 Introduction 81 Downloading files using Mojarra Scales 81 Multi-file upload using Mojarra Scales 85 File upload with Apache MyFaces Tomahawk 88 AJAX multi-file upload with RichFaces 93 Downloading with PrimeFaces 2.0 97 PPR multi-file upload with PrimeFaces 2.0 100 Extracting data from an uploaded CSV file 104 Exporting data to Excel, PDF, CVS, and XML 109 Chapter 4: Security 113 Introduction 113 Working with the JSF Security project 113 Using the JSF Security project without JAAS Roles 116 Using secured managed beans with JSF Security 121 Using Acegi/Spring security in JSF applications 123 Chapter 5: Custom Components 129 Introduction 129 Building a "HelloWorld" JSF custom component 131 Renderers/validators for custom components 138 Adding AJAX support to JSF custom components 144 Using Proxy Id library for dynamic IDs 161 Using JSF ID Generator 163 Accessing resources from custom components 167 Custom components with Archetypes for Maven 169 RichFaces CDK and custom components 173 Composite custom components with zero Java 187 Creating a login composite component in JSF 2.0 190 Building a spinner composite component in JSF 2.0 193 Mixing JSF and Dojo widget for custom components 195 Chapter 6: AJAX in JSF 201 Introduction 201 A first JSF 2.0-AJAX example 201 Using the f:ajax tag 204 Installing and using Dynamic Faces in NetBeans 6.8 205 Using the inputSuggestAjax component 208 ajax4jsf—more than 100 AJAX components 211 Writing reusable AJAX components in JSF 2.0 221 PrimeFaces, CommandLink, and CommandButton 223 ii Table of Contents Chapter 7: Internationalization and Localization 229 Introduction 229 Loading message resource bundles in JSF 230 Using locales and message resource bundles 231 Message resource bundles without f:loadBundle 233 Working with parameterized messages 234 Accessing message resource keys from a class 236 Providing a theme to a Visual Web JSF Project 240 Displaying Arabic, Chinese, Russian, and so on 241 Selecting a time zone in JSF 2.0 242 Chapter 8: JSF, Images, CSS, and JS 243 Introduction 244 Injecting CSS in JSF 244 JSF, CSS, and tables 246 JSF and dynamic CSS 248 Integrating JavaScript and JSF 251 Getting a JSF inputText value from JavaScript 253 Working with JSF hidden fields from JavaScript 254 Passing parameters from JS to JSF (client to server) 256 Passing parameters from JSF to JS (server to client) 257 Opening a pop-up window using JSF and JS 258 Passing parameters with HTTP GET within the URL 260 Communication between parent pop-up windows 262 Populating a JS load function with JSF values 267 Dynamic images with PrimeFaces 269 Cropping images with PrimeFaces 270 Working with rss4jsf project 273 Using resource handlers 275 Chapter 9: JSF—Managing and Testing 279 Introduction 279 Managing JSF with Faces Console 279 Testing JSF applications with JSFUnit 283 JSFUnit and Ant 289 JSFUnit API 292 A JSF and JMeter issue 295 Working with JSF Chart Creator 297 Chapter 10: Facelets 301 Introduction 301 Installing Facelets under JSF 1.2 (or JSF 1.1) 302 Facelets aliasing components 303 iii Table of Contents Facelets templating 304 Creating composition components in JSF 2.0 308 Passing sub-elements to composition components 317 Passing actions to composition components 319 Chapter 11: JSF 2.0 Features 321 Introduction 321 JSF 2.0 annotations 322 The JSF 2.0 exception handling mechanism 326 Bookmarking JSF pages with PrettyFaces 329 JSF declarative event handling 334 URLs based on specified navigation outcome 336 JSF view parameters 338 JSF 2 and navigation cases 341 Chapter 12: Mixing JSF with Other Technologies 343 Introduction 343 Configuring Seam with JSF 344 An overview of Seam JSF controls 348 Mixing JSF and JSTL 349 Integrating JSF and Hibernate 351 Integrating JSF and Spring 352 Mixing JSF and EJB (JPA) 354 Appendix: Configuring JSF-related Technologies 359 Apache MyFaces Trinidad (supports JSF 2.0) 359 RichFaces (supports JSF 2.0) 364 Apache MyFaces Tomahawk (supports JSF 1.2) 365 Apache MyFaces Tomahawk Sandbox (supports JSF 1.2) 367 Mojarra Scales (supports JSF 1.2) 369 j4j (supports JSF 2.0) 369 rss4jsf (supports JSF 2.0) 369 Index 371 iv Preface This book will cover all the important aspects involved in developing JSF applications. It provides clear instructions for getting the most out of JSF and offers many exercises to build impressive desktop-style interfaces for your web applications. You will learn to develop JSF applications starting with simple recipes and gradually moving on to complex recipes. We start off with the simple concepts of converters, validators, and file management. We then work our way through various resources such as CSS, JavaScript, and images to improve your web applications. You will learn to build simple and complex custom components to suit your needs. Next, you get to exploit AJAX as well as implement internationalization and localization for your JSF applications. We then look into ensuring security for your applications and performing testing of your applications. You also get to learn all about Facelets and explore the newest JSF 2.0 features. Finally, you get to learn a few integrations such as JSTL with JSF, Spring with JSF, and Hibernate with JSF. All these concepts are presented in the form of easy-to-follow recipes. Each chapter discusses separate types of recipes and they are presented with an increasing level of complexity from simple to advanced. All of these recipes can be used with JSF 1.2 as well as JSF 2.0.
Recommended publications
  • README.Md ­ Grip
    README.md ­ Grip Gitter join chat build passing License Apache v2 Overview inspectIT (http://inspectit.rocks) is the leading Open Source APM (application performance management) tool for monitoring and analyzing your Java(EE) software applications. Various sensors capture end­to­end information for every request from the end user, to the business tier all the way to the backends. inspectIT is based on an application­centric, business­focused approach, where each technical request is mapped to an application and to a business usecase. With inspectIT you always know about the health of your software and can easily analyze any problems that arise. We hope that together we can build an alternative to the (great!) commercial tools available so that it is up the end user to choose his tooling. Let's make inspectIT even more awesome! See all requests Trace­based analysis SQL details Charting Features Detailed trace representation (invocation sequence) for every request containing all interactions with the systems. Automatic enrichment of every trace with HTTP information, SQL queries, exceptions, parameters and many more. Detailed exception capturing allows to analyze functional problems. Drill down into one invocation sequence to find and analyze problematic requests. Drill up from an problem within an invocation sequence and find business­related information like the URL the request was sent to. Aggregated views for every captured metric, e.g. aggregated SQL overview shows metrics aggregated by SQL query. Navigation feature allows to navigate between aggregated views and invocation sequences for advanced analytics. Talk in invocation sequences! Send detailed traces with all information instead of noting down which clicks lead to the problem.
    [Show full text]
  • Aug 2007 | Java Jazz up | 1 Aug 2007 | Java Jazz up | 2 Editorial Java Jazz Up
    Aug 2007 | Java Jazz up | 1 Aug 2007 | Java Jazz up | 2 Editorial Java Jazz Up It is not how much Dear Readers, “ We are here again with the Java Jazz-up’s second issue. This issue reflects our consistent attempts to avail quality technological updates that enforce you do, but how the reader to appreciate a lot. “ Continuing our journey further from the first release, this edition highlights much love you put interesting Java articles and tutorials in well described manner developed by Java Jazz-up developer’s team. in the doing The current release of Java Jazz-up tries to provide new features orienting around developing enterprise level applications that involves issues like Scheduling, Project Object management, achieving IoC, SOA services, etc. Set of tutorials discussing tools like Maven2, Design patterns, JSF frame- work, SOA web services, Quartz framework, application servers and various complementary open source technologies are provided in such a manner that a novice learns and implements the concepts in very less time. Java News and update section provides the interesting things happening Editor Deepak Kumar around the globe that makes the readers aware of the java-technological advancements. There you will also learn about the new features introduced in Editor-Technical Ravi Kant the existing Java servers, IDEs, tools, utilities along with the Java API Tamana Agarwal updates. Vinod Kumar Graphics Designer Suman Saurabh To make it interesting for readers we have categorized each section with different colors with images that lure readers while reading technological stuffs. We are providing it in PDF format that you can view and even down- load it as a whole or a part.
    [Show full text]
  • Oracle Application Development Framework Mobile (ADF Mobile)
    Oracle® Fusion Middleware Developer’s Guide for Application Development Framework Mobile 11g Release 1 (11.1.1) E10140-01 August 2008 Oracle Fusion Middleware Developer’s Guide for Application Development Framework Mobile 11g Release 1 (11.1.1) E10140-01 Copyright © 2008 Oracle. All rights reserved. The Programs (which include both the software and documentation) contain proprietary information; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited. The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. This document is not warranted to be error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose. If the Programs are delivered to the United States Government or anyone licensing or using the Programs on behalf of the United States Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the Programs, including documentation and technical data, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19, Commercial Computer Software--Restricted Rights (June 1987).
    [Show full text]
  • Full-Graph-Limited-Mvn-Deps.Pdf
    org.jboss.cl.jboss-cl-2.0.9.GA org.jboss.cl.jboss-cl-parent-2.2.1.GA org.jboss.cl.jboss-classloader-N/A org.jboss.cl.jboss-classloading-vfs-N/A org.jboss.cl.jboss-classloading-N/A org.primefaces.extensions.master-pom-1.0.0 org.sonatype.mercury.mercury-mp3-1.0-alpha-1 org.primefaces.themes.overcast-${primefaces.theme.version} org.primefaces.themes.dark-hive-${primefaces.theme.version}org.primefaces.themes.humanity-${primefaces.theme.version}org.primefaces.themes.le-frog-${primefaces.theme.version} org.primefaces.themes.south-street-${primefaces.theme.version}org.primefaces.themes.sunny-${primefaces.theme.version}org.primefaces.themes.hot-sneaks-${primefaces.theme.version}org.primefaces.themes.cupertino-${primefaces.theme.version} org.primefaces.themes.trontastic-${primefaces.theme.version}org.primefaces.themes.excite-bike-${primefaces.theme.version} org.apache.maven.mercury.mercury-external-N/A org.primefaces.themes.redmond-${primefaces.theme.version}org.primefaces.themes.afterwork-${primefaces.theme.version}org.primefaces.themes.glass-x-${primefaces.theme.version}org.primefaces.themes.home-${primefaces.theme.version} org.primefaces.themes.black-tie-${primefaces.theme.version}org.primefaces.themes.eggplant-${primefaces.theme.version} org.apache.maven.mercury.mercury-repo-remote-m2-N/Aorg.apache.maven.mercury.mercury-md-sat-N/A org.primefaces.themes.ui-lightness-${primefaces.theme.version}org.primefaces.themes.midnight-${primefaces.theme.version}org.primefaces.themes.mint-choc-${primefaces.theme.version}org.primefaces.themes.afternoon-${primefaces.theme.version}org.primefaces.themes.dot-luv-${primefaces.theme.version}org.primefaces.themes.smoothness-${primefaces.theme.version}org.primefaces.themes.swanky-purse-${primefaces.theme.version}
    [Show full text]
  • Listado De Libros Virtuales Base De Datos De Investigación Ebrary-Engineering Total De Libros: 8127
    LISTADO DE LIBROS VIRTUALES BASE DE DATOS DE INVESTIGACIÓN EBRARY-ENGINEERING TOTAL DE LIBROS: 8127 TIPO CODIGO CODIGO CODIGO NUMERO TIPO TITULO MEDIO IES BIBLIOTECA LIBRO EJEMPLA SOPORTE 1018 UAE-BV4 5008030 LIBRO Turbulent Combustion DIGITAL 1 1018 UAE-BV4 5006991 LIBRO Waste Incineration and the Environment DIGITAL 1 1018 UAE-BV4 5006985 LIBRO Volatile Organic Compounds in the Atmosphere DIGITAL 1 1018 UAE-BV4 5006982 LIBRO Contaminated Land and its Reclamation DIGITAL 1 1018 UAE-BV4 5006980 LIBRO Risk Assessment and Risk Management DIGITAL 1 1018 UAE-BV4 5006976 LIBRO Chlorinated Organic Micropollutants DIGITAL 1 1018 UAE-BV4 5006973 LIBRO Environmental Impact of Power Generation DIGITAL 1 1018 UAE-BV4 5006970 LIBRO Mining and its Environmental Impact DIGITAL 1 1018 UAE-BV4 5006969 LIBRO Air Quality Management DIGITAL 1 1018 UAE-BV4 5006963 LIBRO Waste Treatment and Disposal DIGITAL 1 1018 UAE-BV4 5006426 LIBRO Home Recording Power! : Set up Your Own Recording Studio for Personal & ProfessionalDIGITAL Use 1 1018 UAE-BV4 5006424 LIBRO Graphics Tablet Solutions DIGITAL 1 1018 UAE-BV4 5006422 LIBRO Paint Shop Pro Web Graphics DIGITAL 1 1018 UAE-BV4 5006014 LIBRO Stochastic Models in Reliability DIGITAL 1 1018 UAE-BV4 5006013 LIBRO Inequalities : With Applications to Engineering DIGITAL 1 1018 UAE-BV4 5005105 LIBRO Issues & Dilemmas of Biotechnology : A Reference Guide DIGITAL 1 1018 UAE-BV4 5004961 LIBRO Web Site Design is Communication Design DIGITAL 1 1018 UAE-BV4 5004620 LIBRO On Video DIGITAL 1 1018 UAE-BV4 5003092 LIBRO Windows
    [Show full text]
  • Tesis De Grado
    ESCUELA SUPERIOR POLITÉCNICA DE CHIMBORAZO FACULTAD DE INFORMÁTICA Y ELECTRÓNICA ESCUELA DE INGENIERÍA EN SISTEMAS “ANÁLISIS COMPARATIVO ENTRE LOS FRAMEWORKS MYFACES, ICEFACES Y RICHFACES APLICADO AL SISTEMA NUTRICIONAL DE LA ESPOCH” TESIS DE GRADO Previo a la obtención del Título de INGENIERA EN SISTEMAS INFORMÁTICOS Presentado por: MIRIAM EUGENIA JARAMILLO ESTRADA Riobamba – Ecuador 2013 AGRADECIMIENTO Agradezco a Dios que con su inmenso amor me ha permitido llegar hasta este punto de mi vida; a mis padres por creer siempre en mi; al padre José Bravo Román, que con su cariño inculcó en mí valores de perseverancia; a mi esposo Ricardo, por su afecto y apoyo incondicional; a mi familia y amigos por sus consejos y palabras de aliento; a mis profesores, en especial al Ing. Jorge Menéndez, por su tiempo compartido, su paciencia, sus valiosas sugerencias y criterios en el presente trabajo y a la Escuela de Nutrición y Dietética, por colaborar en la parte aplicativa de la investigación. DEDICATORIA A Dios por darme el regalo de la vida y guiarme siempre en todo momento; a mis padres por su amor y que por el orgullo que sienten por mí me han llevado a cumplir una más de mis metas; a mi esposo Ricardo por ser mi complemento y estar siempre a mi lado apoyándome en los momentos más difíciles de mi carrera; a mi hija Alina por ser la fuente de inspiración para continuar con la realización de mis objetivos y que con su amor, ternura y cariño ha llenado mi vida de felicidad y finalmente a mis amigos por la motivación constante para culminar una etapa más de mi vida.
    [Show full text]
  • Mobile Developer's Guide for Oracle Application Development Framework 11G Release 1 (11.1.1) E10140-02
    Oracle® Fusion Middleware Mobile Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1) E10140-02 May 2009 Oracle Fusion Middleware Mobile Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1) E10140-02 Copyright © 2009, Oracle and/or its affiliates. All rights reserved. Primary Author: John Bassett Contributing Author: Tadashi Enomori This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007).
    [Show full text]
  • Menco Haeckermann, Andrés Guillermo Senior Elles, Lercy Elvira
    TUTORIAL SOBRE EL ESTUDIO DEL FRAMEWORK MYFACES TOMAHAWK DE JAVA PARA LA CREACIÓN DE APLICACIONES WEB EN JSF Menco Haeckermann, Andrés Guillermo Senior Elles, Lercy Elvira Vásquez, Giovanni Director UNIVERSIDAD TECNOLÓGICA DE BOLÍVAR FACULTAD DE INGENIERÍA MINOR DE APLICACIONES DISTRIBUIDAS CARTAGENA DE INDIAS D.T. Y C. 2008 LISTA DE FIGURAS Y TABLAS FiguraT 1. Paso 1 integración Myfaces con Netbean T .........................................................16 FiguraT 2. Paso 2 integración Myfaces con Netbean T .........................................................17 FiguraT 3. Paso 3 integración Myfaces con NetbeanT ..........................................................18 FiguraT 4. Paso 4 integración Myfaces con Netbean T .........................................................19 FiguraT 5. Paso 5 integración Myfaces con Netbean T .........................................................20 FiguraT 6. Paso 6 integración Myfaces con Netbean T .........................................................21 FiguraT 7. Paso 7 integración Myfaces con Netbean T .........................................................21 FiguraT 8. Paso 8 integración Myfaces con Netbean T .........................................................22 FiguraT 9. Paso 9 integración Myfaces con Netbean T .........................................................25 TablaTU 1. AtributosU componente jscook MenuT .......................................................................30 TablaTU 2. AtributosU componente tree T ......................................................................................34
    [Show full text]
  • L-G-0000839298-0014178865.Pdf
    Michael Kurz studierte Informatik an der Technischen Universität Wien und hat sich seitdem in seiner beruflichen Tätigkeit dem Thema Webentwicklung verschrieben. Seit seinem Wechsel zu IRIAN beschäftigt er sich vorrangig mit JSF, und ist im Unterneh- men als Webentwickler für mehrere JSF-Projekte tätig. Weiter leitet er JSF-Schulungen, hält Vorträge auf internationalen Konferenzen und ist Apache MyFaces Committer. Neben der Arbeit als Software- entwickler schreibt er gerne über JSF und verwandte Themen – unter anderem auf seinem Blog http://jsflive. wordpress.com. Martin Marinschek absolvierte das Studium der Internationalen BWL und der Computertechnik in Wien. Seither leitet er als Geschäftsführer der Firma IRIAN.at verschiedene Software-Enginee- ring-Projekte und bietet Schulungen und Consulting im J2EE- Bereich an. Seit 2003 ist er Mitglied des MyFaces-Projekts und seit 2004 Committer der Apache Software Foundation. Er realisierte eine Vielzahl von großen Webprojekten mit JavaServer Faces, insbeson- dere mit Apache MyFaces. Gleichzeitig unterrichtet er an Fachhoch- schulen und Universitäten in Wien Web- und Software-Engineering. Als Mitglied der JSF 2.2 Expertgroup ist Martin Marinschek auch ein Co-Autor der aktuellen JSF-Spezifikation. Michael Kurz · Martin Marinschek JavaServer Faces 2.2 Grundlagen und erweiterte Konzepte 3., vollständig überarbeitete Auflage Michael Kurz [email protected] Martin Marinschek [email protected] Lektorat: Dr. Michael Barabas Copy-Editing: Ursula Zimpfer, Herrenberg Satz: Michael Kurz Herstellung: Frank Heidt Umschlaggestaltung: Helmut Kraus, www.exclam.de Druck und Bindung: M.P. Media-Print Informationstechnologie GmbH, 33100 Paderborn Bibliografische Information der Deutschen Nationalbibliothek Die Deutsche Nationalbibliothek verzeichnet diese Publikation in der Deutschen Nationalbibliografie; detaillierte bibliografische Daten sind im Internet über http://dnb.d-nb.de abrufbar.
    [Show full text]
  • Capítulo 7. Java Server Faces
    7. Java Server Faces 7.1 El porqué del uso de este JSF Para las necesidades de SICOM, se planeo inicialmente un software local, el cual cumpliera las necesidades que se presentaron, y se fue desarrollando de esta manera, hasta que se encontró la necesidad de interactuar con el sistema de manera remota, a través de una interfaz sencilla, tal vez no completamente implementada, pero usando las funciones básicas y las más importantes. Y entramos en el proceso de investigación, de cual sería la mejor tecnología para desarrollar esto de la manera más práctica y eficiente, incluyendo el uso del lenguaje y que siguiera la arquitectura de MVC, además de que cumpliera los estándares básicos y sea sencillo de modelar en la parte de la vista ya que existen una gran cantidad de formas para modelar una página web (html, flash, applets, jsp, etc) y nos dimos cuenta que podríamos hacerlo de manera muy baja, construyendo y modelando código jsp, html, etc. Pero dentro de la investigación encontramos varios lenguajes muy usados hoy en día que ayudan a la construcción de sistemas enfocados a aplicaciones web, sin meterse tanto con aspectos no importantes y solo concentrarse en la parte de la programación lógica, entre estos fue Java Server Faces, Ruby on Rails, PHP bajo diferentes frameworks, etc. Y el que más de adecuaba a la solución de nuestras necesidades y conforme a nuestra experiencia que llevábamos con java fue el de Java Server faces. No solo nos quedamos con Java Server Faces, investigamos sobre distintos frameworks como los mencionados anteriormente
    [Show full text]
  • From Apache Beehive to Oracle's Application Development Framework
    From Apache Beehive to Oracle’s Application Development Framework (Oracle ADF) An Oracle White Paper August 2008 NOTE: The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. From Apache Beehive to Oracle’s Application Development Framework (Oracle ADF) Page 2 From Apache Beehive to Oracle’s Application Development Framework (Oracle ADF) Note: .................................................................................................................... 2 Executive Overview .......................................................................................... 4 Beehive – a brief history ................................................................................... 4 The ever changing world of The Java Enterprise ......................................... 5 Is Vanilla Java EE 5.0 good enough to replace Beehive?............................ 5 Oracle ADF Overview ..................................................................................... 6 Beehive Controls = ADF Model Layer ..................................................... 6 NetUI = ADF Controller ............................................................................ 7 NetUI JSP Tags
    [Show full text]
  • Extend JSF with Apache Trinidad Components Skill Level: Intermediate
    Build Apache Geronimo applications using JavaServer Faces, Part 4: Extend JSF with Apache Trinidad components Skill Level: Intermediate Chris Herborth ([email protected]) Freelance Freelance Writer 05 Dec 2006 So far in this five-part tutorial series, you've explored Java™Server Faces (JSF), including deploying a simple JSF application on Apache Geronimo, integrating Apache Tomahawk with the application, and learning how to add Asynchronous JavaScript + XML (Ajax) capabilities to your JSF application using the Sun Ajax4jsf open source framework. In this installment, Part 4, you'll learn how to use Apache Trinidad, the open source version of ADF Faces. Trinidad offers a set of complimentary components that will further enhance the interface of your JSF application. Section 1. Before you start This tutorial shows Java programmers how to build highly interactive Java Platform, Enterprise Edition (Java EE) applications for deployment on Apache Geronimo using the JSF components. The tutorial assumes you'll be using the Eclipse IDE as your development platform. About this tutorial This tutorial introduces you to Apache Trinidad, a set of complimentary components that will improve the interface of your JSF application. You'll convert the existing front end of your sample application for the sign-up pages of a developer forum to use Trinidad components. About this series Extend JSF with Apache Trinidad components © Copyright IBM Corporation 1994, 2006. All rights reserved. Page 1 of 23 developerWorks® ibm.com/developerWorks This tutorial is the fourth of a five-part series about building Apache Geronimo applications using JSF. Here's a rundown of the entire series: • Part 1: Use Eclipse and Apache MyFaces Core to build a basic application introduced you to using Apache's MyFaces implementation of the JSF standard with Geronimo, a free application server (also from Apache).
    [Show full text]