Develop applications using RichFaces 4 JBoss

Develop Applications Using Richfaces 4 Jboss-Free PDF

  • Date:17 Nov 2020
  • Views:1
  • Downloads:0
  • Pages:98
  • Size:386.03 KB

Share Pdf : Develop Applications Using Richfaces 4 Jboss

Download and Preview : Develop Applications Using Richfaces 4 Jboss

Report CopyRight/DMCA Form For : Develop Applications Using Richfaces 4 Jboss


1 Introduction 1,2 Getting started with RichFaces 3. 2 1 Technical Requirements 3,2 1 1 Project libraries and dependencies 3. 2 2 Development environments 5,2 3 Setting up RichFaces 5. 2 4 Creating a project with JBoss Developer Studio 6. 2 5 Creating a project with Maven 6,2 5 1 Setting up Maven 6. 2 5 2 Using the RichFaces project archetype 7,2 6 Using RichFaces in existing JSF 2 projects 9.
3 RichFaces overview 11,3 1 Full technical requirements 11. 3 1 1 Server requirements 11,3 1 2 Client requirements 11. 3 1 3 Development requirements 11,3 2 Architecture 12. 3 2 1 Ajax Action Components 12,3 2 2 Ajax Containers 12. 3 2 3 Ajax Output 12,3 2 4 Skins and theming 12,3 2 5 RichFaces Ajax Extensions 13.
3 3 Technologies 13, 3 4 Differences between JSF and RichFaces mechanisms 13. 3 5 Restrictions 13,4 Basic concepts 15,4 1 Sending an Ajax request 15. 4 2 Partial tree processing 15,4 3 Partial view updates 16. 4 4 Component overview 16,5 Advanced features 17,5 1 JSF 2 integration 17. 5 2 Error handling 17,5 2 1 Client side errors 17,5 2 2 Server side errors 17.
5 3 Other functions 17,5 4 Resource loading 17,5 4 1 Configuring ResourceServlet 18. 5 4 2 Resource optimization 18,5 4 3 Resource mapping 19. 6 Skinning and theming 21,6 1 What are skins 21,6 2 Using skins 21. 6 3 Skinning overview 22,Developer Guide,6 3 1 Skin parameter tables 22. 6 3 2 Support for round corners 24,6 3 3 ECSS files 24.
6 4 Customizing skins 25,6 4 1 Creating a new skin 26. 6 5 Changing skins at runtime 27,6 6 Skinning standard controls 29. 6 6 1 Automatic skinning 29,6 6 2 Skinning with the rfs ctn class 29. A Style classes and skin parameters 31,A 1 Processing management 31. A 1 1 a4j log 31,A 2 Rich inputs 33,A 2 1 rich autocomplete 33.
A 2 2 rich calendar 34,A 2 3 rich editor 40,A 2 4 rich fileUpload 41. A 2 5 rich inplaceInput 43,A 2 6 rich inputNumberSlider 45. A 2 7 rich inputNumberSpinner 47,A 3 Rich selects 48. A 3 1 rich inplaceSelect 48,A 3 2 rich select 50,A 3 3 rich orderingList 52. A 3 4 rich pickList 53,A 4 Panels and containers 54.
A 4 1 rich panel 54,A 4 2 rich accordion 55,A 4 3 rich collapsiblePanel 56. A 4 4 rich popupPanel 58,A 4 5 rich tabPanel 59,A 5 Tables and grids 60. A 5 1 rich dataTable 60,A 5 2 rich collapsibleSubTable 63. A 5 3 rich collapsibleSubTableToggler 65,A 5 4 rich extendedDataTable 65. A 5 5 rich dataGrid 68,A 5 6 rich list 70,A 5 7 rich dataScroller 70.
A 6 Trees 72,A 6 1 rich tree 72,A 6 2 rich treeNode 72. A 7 Menus and toolbars 74,A 7 1 rich dropDownMenu 74. A 7 2 rich contextMenu 76,A 7 3 rich panelMenu 77,A 7 4 rich toolbar 82. A 8 Output and messages 83,A 8 1 rich message 83,A 8 2 rich messages 84. A 8 3 rich notify 84,A 8 4 rich notifyMessage 85,A 8 5 rich notifyStack 86.
A 8 6 rich progressBar 87,A 8 7 rich tooltip 87,A 9 Drag and drop 88. A 9 1 rich dropTarget 88,A 9 2 rich dragIndicator 88. B Migration Notes 89,B 1 RichFaces 4 3 7 Final 89,B 1 1 Autosize changes for the popupPanel 89. B 2 RichFaces 4 3 0 Final 89,B 2 1 Built in sorting and filtering controls 89. B 2 2 NotifyMessage string escaping 89,B 2 3 Select input validation 89.
C Revision History 91,Introduction, The RichFaces framework is a rich component library for JavaServer Faces JSF The framework. extends the Ajax capabilities of JSF with advanced features for the development of enterprise. web applications, RichFaces leverages several parts of the JSF 2 framework including the lifecycle validation. conversion facilities and management of static and dynamic resources The RichFaces. framework includes components with built in Ajax support and a customizable look and feel that. can be incorporated into JSF applications, RichFaces provides a number of advantages for enterprise web application development. Create complex application views using out of the box components The RichFaces user. interface UI library contains components for adding rich interactive features to JSF. applications It extends the RichFaces framework to include a large set of Ajax enabled. components that come with extensive skinning support Additionally the RichFaces framework. is designed to be used seamlessly with other 3d party libraries on the same page so you have. more options for developing applications, Write your own customized rich components with built in Ajax support The Component. Development Kit CDK used for the RichFaces UI library creation includes a code generation. facility and a templating facility using XHTML extended hyper text markup language syntax. Generate binary resources on the fly Extensions to JSF 2 resource handling facilities can. generate images sounds Microsoft Excel spreadsheets and more during run time. Create a modern rich user interface with skinning technology RichFaces provides a skinning. feature that allows you to define and manage different color schemes and other parameters of. the look and feel It is possible to access the skin parameters from page code during run time. RichFaces comes packaged with a number of skins to get you started but you can also easily. create your own customized skins too,Getting started with RichFaces.
Follow the instructions in this chapter to configure the RichFaces framework and get started with. application development, If you have existing projects that use a previous version of RichFaces refer to the RichFaces. Migration Guide,2 1 Technical Requirements, The minimum technical requirements needed to get started with RichFaces are outlined below. Java Development Kit JDK 6 or higher, An application server compliant with Java Platform Enterprise Edition 6 JEE6 such as JBoss. EAP 6 WildFly or a servlet container coupled with a JSF implementation such as Apache. Tomcat Mojarra 2 x, A compliant web browser see the section on Section 3 1 2 Client requirements for further. 2 1 1 Project libraries and dependencies, The RichFaces library is distributed across three jars providing all the components and services.
of the RichFaces framework,RichFaces Library,richfaces core jar. richfaces a4j jar,richfaces rich jar, The framework depends on both mandatory and optional third party dependencies Some of the. framework services are only enabled when the optional libraries are present. Note that these dependencies may further depend on their own runtime dependencies. Mandatory third party dependencies,Java Server Faces 2 x implementation. Chapter 2 Getting started wi,javax faces jar version 2 1 28 or higher. or myfaces impl jar version 2 1 10 or higher,Google Guava.
guava jar version 18 0,CSS Parser,cssparser jar version 0 9 14. Simple API for CSS,sac jar version 1 3,Optional third party dependencies. Bean validation JSR 303 integration for client side validation JSR 303 API and. Implementation,validation api jar version 1 0 0 GA. hibernate validator jar version code 4 3 2 Final, Push transport library Atmosphere without dependencies. atmosphere runtime jar version 2 2 3, selected compatibility modules atmosphere compat jar may be necessary.
Push JMS integration JMS API and Implementation,jms jar version 1 1. hornetq jms jar version 2 2 7 Final or higher,Push CDI integration CDI API and Implementation. cdi api jar version 1 0 SP4,javax inject jar version 1. jsr 250 api jar version 1 0,weld servlet jar version 2 2 6 Final. Extended caching EhCache,ehcache jar version 2 8 3.
Development environments,Dependencies for servlet containers. Some of the dependencies are part of the Java EE 6 specification and thus it is not. necessary to include them in projects running on Java EE applications servers It. is still necessary to include them when using servlet containers. This does not apply to dependencies on the Servlet API the JSP API and the. EL API These APIs are integral parts of both application servers and servlet. containers,2 2 Development environments, RichFaces applications can be developed using a range of tools including integrated development. environments IDEs This chapter covers only two such environments in detail. JBoss Developer Studio as described in Section 2 4 Creating a project with JBoss. Developer Studio, Maven as described in Section 2 5 Creating a project with Maven. Other development environments such as Idea or NetBeans could also be used for RichFaces. development but such usage is not detailed in this book. 2 3 Setting up RichFaces, Follow the instructions in this section to set up a project with the RichFaces framework and begin. building applications,1 Download the RichFaces archive.
Download RichFaces from the JBoss RichFaces Downloads area at http www jboss org. richfaces download html The binary files available as a zip archive contain the following. compiled ready to use Java Archives JAR files of the RichFaces library. library source JAR files, documentation including Java documentation and JavaScript documentation. archetypes,example source code,2 Unzip the archive. Create a new directory named RichFaces then unzip the archive that contains the binaries. into this new directory,Chapter 2 Getting started wi. 2 4 Creating a project with JBoss Developer Studio. Follow the procedure in this section to create a new RichFaces application with JBoss Developer. Studio Ensure you are using the latest version of JBoss Developer Studio to take advantage. of the latest feautures and stability improvements. 1 Create a new project, Create a new project based on the JSF 2 environment using the RichFaces 4 template In. JBoss Developer Studio select File New JSF Project from the menu Name the project. select JSF 2 from the JSF Environment drop down box and click the Finish button to create. the project, If necessary update the JSF 2 JAR files to the latest versions.
2 Add the RichFaces libraries to the project, Add the RichFaces libraries and their mandatory dependencies to the project Copy them from. the location where you unzipped the RichFaces archive to the WebContent WEB INF lib. directory of your project in JBoss Developer Studio. 3 Reference the tag library, The RichFaces tag libraries must be referenced on each XHTML page in your project. ui composition xmlns rich http richfaces org rich,ui composition xmlns a4j http richfaces org a4j. ui composition, You are now ready to begin developing your RichFaces application RichFaces components. can be dragged and dropped from the JBoss Developer Studio RichFaces palette into your. application s XHTML pages,2 5 Creating a project with Maven.
Apache Maven is a build automation and project management tool for Java projects Follow the. instructions in this section to create a Maven project for RichFaces. 2 5 1 Setting up Maven, Maven can be downloaded and installed from Apache s website at http maven apache org. download html Due to the use of dependency importing Maven version 3 0 4 or above is. Using the RichFaces project archetype, Once Maven has been installed no further configuration is required to begin building Maven. 2 5 2 Using the RichFaces project archetype, A Maven archetype is a template for creating projects Maven uses an archetype to generate a. directory structure and files for a particular project as well as creating pom xml files that contain. build instructions, The RichFaces distribution includes a Maven archetype named richfaces archetype. simpleapp for generating the basic structure and requirements of a RichFaces application project. Maven can obtain the archetype from maven central at http search maven org The archetype is. also included with the RichFaces distribution in the archetypes directory Follow the procedure. in this section to generate a new Maven based RichFaces project using the archetype. 1 Generate the project from the archetype, The project can be generated with the richfaces archetype simpleapp archetype Create.
a new directory for your project then run the following Maven command in the directory. mvn archetype generate DarchetypeGroupId org richfaces archetypes. DarchetypeArtifactId richfaces archetype simpleapp. DarchetypeVersion 4 5 17 Final DgroupId org docs richfaces. DartifactId new project, The following parameters can be used to customize your project. Defines the package for the Managed Beans,DartifactId. Defines the name of the project, The command generates a new RichFaces project with the following structure. new project,readme txt,RichBean java,index xhtml,template xhtml. Chapter 2 Getting started wi,faces config xml,2 Add test dependencies optional.
Your root directory of your project contains a project descriptor file pom xml If you wish to. include modules for test driven JSF development add any dependencies for the tests to the. pom xml file, For testing the server side part of your application check out JBoss Arquillian project http. www jboss org arquillian, If you want to test JSF from client s perspective with ability to access state of JSF. internals use Arquillian Warp https github com arquillian arquillian extension warp blob. master README md, For automation of client side tests in real browser you may want to employ Arquillian. Graphene http community jboss org wiki ArquillianGraphene and Arquillian Drone https. Chapter 2 Getting started wi 4 javax faces jar version 2 1 28 or higher or myfaces impl jar version 2 1 10 or higher Google Guava guava jar version 18 0 CSS Parser cssparser jar version 0 9 14 Simple API for CSS sac jar version 1 3 Optional third party dependencies Bean validation JSR 303 integration for client side validation JSR 303 API and

Related Books