Java Reference
In-Depth Information
<dependency>
<groupId>org.richfaces</groupId>
<artifactId>richfaces-bom</artifactId>
<version>4.3.5.Final</version>
<scope>import</scope>
<type>pom</type>
</dependencies>
</dependencyManagement>
Then, it's just a matter of adding the rich UI libraries and the core API:
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-components-ui</artifactId>
</dependency>
<dependency>
<groupId>org.richfaces.core</groupId>
<artifactId>richfaces-core-impl</artifactId>
</dependency>
Making your application rich
Once we have installed RichFaces libraries, we will just need to reference them on each
XHTML page in your project. Here's the new index.xhtml page using the RichFaces
namespaces:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
template="/WEB-INF/templates/default.xhtml">
<ui:define name="content">
<f:view>
<h:form>
<a4j:poll id="poll" interval="2000"
enabled="#{pollerBean.pollingActive}"
render="poll,grid,bookedCounter"/>
Search WWH ::




Custom Search