Diese Seite (Version-1) wurde zuletzt am 28-März-2017 14:37 von Markus geändert.

Du bist nicht autorisiert, diese Seite umzubenennen.

Du bist nicht autorisiert, diese Seite zu löschen.

Versionsgeschichte der Seite

Version Zuletzt geändert Größe Autor Änderungen Kommentar

Links

Eingehende Links Ausgehende Links

Versionsunterschiede

Unterschiede zwischen Version und .

Zeile 1: 62 Zeilen hinzugefügt.
[{ALLOW view All}]
[{ALLOW edit Authenticated}]
!![RichFaces|http://docs.jboss.org/richfaces]
!Getting started on 18.12.2011
[Home|http://docs.jboss.org/richfaces/] |
[Components|http://docs.jboss.org/richfaces/latest_4_1_X/Component_Reference/en-US/html/] |
[ShowCases|http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=pickList]
__Note__: There are lots of sites in the internet about rich faces. Most of them refer to version 3.3.x. But there have been several changes to version 4.x (support, shuttleList). Please compare with the [migration guide 3.3.x to 4.x|http://community.jboss.org/wiki/RichFacesMigrationGuide33x-4xMigration] and the [release announcement for 4.1|http://planet.jboss.org/post/richfaces_4_1_0_final_release_announcement].
I am using JBoss AS 7.02 and followed the [Development Guide>Getting Started|
http://docs.jboss.org/richfaces/latest_4_1_X/Developer_Guide/en-US/html/chap-Developer_Guide-Getting_started_with_RichFaces.html] instructions. It was enough to \\
(1.) add following jars to my project WEB-INF/lib
{{{
richfaces-components-api-4.1.0.Final.jar
richfaces-components-ui-4.1.0.Final.jar
richfaces-core-api-4.1.0.Final.jar
richfaces-core-api-4.1.0.Final.jar
guava-10.0.1.jar
}}}
The first four can be download from the [RichFaces Homepage|http://www.jboss.org/richfaces/download/stable.html], the last one from [Google Guave|http://code.google.com/p/guava-libraries/]
(2.)
Add following last two tags to the main template (or each page)
{{{
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
}}}
Just for completion, here are the others:
* [Oracle Mojarra|http://javaserverfaces.java.net/download.html] | [MyFaces|http://myfaces.apache.org/download.html] \\
* [Simple API for CSS, sac.jar (version 1.3)|http://www.w3.org/Style/CSS/SAC/] \\
* [CSS Parser, cssparser.jar (version 0.9.5)|http://sourceforge.net/projects/cssparser/]
(3.) RichFaces comes with skins. To use your own (or change it) add
the following to WEB-INF/web.xml
{{{
<context-param>
<param-name>org.richfaces.skin</param-name>
<param-value>plain</param-value>
</context-param>
}}}
(4.) There is an error (which you can notice with edgy buttons on plain skin in Firefox)
{{{
java.lang.IllegalArgumentException: Width (2000) and height (0) cannot be <= 0
}}}
which can be avoided with [this|https://issues.jboss.org/browse/RF-11103]:
{{{
<context-param>
<param-name>org.richfaces.enableControlSkinning</param-name>
<param-value>false</param-value>
</context-param>
}}}