Jfaces java

Solo disponible en BuenasTareas
  • Páginas : 17 (4104 palabras )
  • Descarga(s) : 0
  • Publicado : 1 de junio de 2011
Leer documento completo
Vista previa del texto
#138
Get More Refcardz! Visit refcardz.com
CONTENTS INCLUDE:
n n

n

n

n

n

Introduction Getting Started Core JSF 2 Extensions Render Options Queue Client-Side Validation and more...

A Next Generation JSF Framework
By Nick Belaevski, Ilya Shailkovsky, Max Katz, and Jay Balunas
For other build systems such as Ant just add the following jars to your projects WEB-INF/libdirectory: richfaces-core-api-.jar, richfaces-core-impl-.jar, richfaces-components-api-.jar, richfaces-components-ui-.jar, sac-1.3.jar, cssparser-0.9.5.jar, and google-guava-r08.jar.

RichFaces 4.0

INTRODUCTION

RichFaces 4.0 is an advanced JSF 2.0 based framework that provides a complete range of rich Ajax enabled UI components, as well as other features such as a component development kit,dynamic resource support, and skinning. The 4.0 version brings complete JSF 2.0 support to the project. RichFaces is made up of two component tag libraries. “a4j:” represents core Ajax functionality, and page wide controls. While the “rich:” component set represent self contained and advanced UI components such as calendars, and trees.

Hot Tip

No filters or other updates to your web.xml areneeded to install RichFaces 4.0.

Page Setup
To use RichFaces components in your views add:
xmlns:a4j=”http://richfaces.org/a4j” xmlns:rich=”http://richfaces.org/rich”

JavaServer Faces 2.0
The second version of JSF added many features such as, core Ajax functionality, integrated Facelets support, annotations, view parameters, and more. RichFaces 4.0 has been specifically redesigned to notonly work with these new features, but to extend them.

Maven Archetypes
The project also contains several Maven archetypes to quickly create projects (including one for Google App Engine targeted project). Simple project generation:
mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes -DarchetypeArtifactId=richfaces-archetype-simpleapp -DarchetypeVersion= -DgroupId=-DartifactId= -Dversion=

Hot Tip

JSF 2.0 is covered in detail in the DZone JavaServer Faces 2.0 Refcard.

RichFaces 4.0: A Next Generation JSF Framework

GETTING STARTED

From the generated project directory you can build, and deploy as with any Maven project.

RichFaces can be used in any container that JSF 2.0 is compatible with. This means all servers compliant with the EE6 specification (JBoss AS6/7, Glassfish 3 ) and all major servlet containers (Tomcat, Jetty).

Hot Tip

Easily import in JBoss Tools using m2eclipse http://jboss.org/tools.

Hot Tip

Check the RichFaces project page for the latest information and downloads: http://richfaces.org

CORE JSF 2 EXTENSIONS

Installing RichFaces
Since RichFaces is build on top of JSF 2.0 its installation is as easy as adding afew jars to your project. For Maven-based projects configure your repositories following the Maven Getting Started Guide here: http://community.jboss.org/wiki/MavenGettingStarted-Users Then simply add the following to you projects pom.xml.
org.richfaces richfaces-bom ${richfaces.version} import pom … org.richfaces.ui richfaces-components-ui org.richfaces.core richfaces-core-impla4j:ajax
Upgrades the standard f:ajax tag/behavior with more features.

DZone, Inc.

|

www.dzone.com

2

RichFaces 4.0: A Next Generation JSF Framework

...

Execute & Render EL Resolution JSF 2.0 determines the values for execute and render attributes when the current view is rendered. In the example above if #{bean.update} changes on the server the older value will be used.RichFaces processes attribute values on the server side so you will always be using the most current value. Addition Common Enhancements All RichFaces components that fire Ajax requests share the features above, and all of the ones from below:
Attribute
limitRender bypassUpdates onbegin onbeforedomupdate oncomplete status



All RichFaces controls which fire an Ajax request have status...
tracking img