|
|
|
[
Permlink
| « Hide
]
Matt Raible - 10/Jun/08 09:24 AM
Can you please include the dependency XML for RichFaces as well as any custom repositories that need to be added.
Hi Matt:
1. Repository to be added: <repository> <id>JBoss Richfaces</id> <url>http://repository.jboss.org/maven2</url> </repository> 2. Comment out the old ajax4jf: <!--dependency> <groupId>net.java.dev.ajax4jsf</groupId> <artifactId>ajax4jsf</artifactId> <version>${ajax4jsf.version}</version> </dependency--> 3. Add RichFaces dependency: <dependency> <groupId>org.richfaces.framework</groupId> <artifactId>richfaces-api</artifactId> <version>${richfaces.version}</version> <exclusions> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> </exclusion> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-impl</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.richfaces.framework</groupId> <artifactId>richfaces-impl</artifactId> <version>${richfaces.version}</version> <exclusions> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> </exclusion> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-impl</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.richfaces.ui</groupId> <artifactId>richfaces-ui</artifactId> <version>${richfaces.version}</version> <exclusions> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> </exclusion> <exclusion> <groupId>javax.faces</groupId> <artifactId>jsf-impl</artifactId> </exclusion> </exclusions> </dependency> 4. Add the version at the bottom of pom.xml: <richfaces.version>3.2.0.SR1</richfaces.version> To solve this bag you should change /common/tableFooter.xhtml adding <ui:composition> tag.
There is a full version of this file: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"> <ui:composition> <h:panelGrid columns="1" styleClass="scrollerTable" columnClasses="standardTable_ColumnCentered"> <t:dataScroller id="scroll" for="#{tableName}" fastStep="10" pageCountVar="pageCount" pageIndexVar="pageIndex" immediate="false" styleClass="scroller" paginator="false" paginatorMaxPages="9" paginatorTableClass="paginator"> <f:facet name="first" > <t:graphicImage url="/images/arrow-first.gif"/> </f:facet> <f:facet name="last"> <t:graphicImage url="/images/arrow-last.gif"/> </f:facet> <f:facet name="previous"> <t:graphicImage url="/images/arrow-previous.gif"/> </f:facet> <f:facet name="next"> <t:graphicImage url="/images/arrow-next.gif"/> </f:facet> <f:facet name="fastforward"> <t:graphicImage url="/images/arrow-ff.gif"/> </f:facet> <f:facet name="fastrewind"> <t:graphicImage url="/images/arrow-fr.gif"/> </f:facet> </t:dataScroller> </h:panelGrid> </ui:composition> </html> |
||||||||||||||||||||||||||||||||||||||