History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-1078
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Matt Raible
Reporter: Irshad A. Buchh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

JBoss Richfaces integration issue -- clicking add button on users.xhtml does not navigate to userForm.xhtml page.

Created: 10/Jun/08 09:17 AM   Updated: 03/Oct/08 07:52 AM
Component/s: Web - JSF
Affects Version/s: 2.0.2
Fix Version/s: 2.1


 Description  « Hide

1. Create JSF basic project.
2. Run appfuse:full-source.
3. Change pom.xml to add JBoss Richfaces 3.2
4. Run mvn jetty:run-war

The are no startup errors as such, but when u click add button to add more users, it doesn't go to the userForm.xhtml page as it should. The richfaces examples are working fine.

 All   Comments   Change History   FishEye      Sort Order:
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.

Irshad A. Buchh - 10/Jun/08 09:49 AM
Hi Matt:

1. Repository to be added:

<repository>
            <id>JBoss Richfaces</id>
            <url>http://repository.jboss.org/maven2&lt;/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>

Timur Jamakeev - 03/Oct/08 07:52 AM
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>