0 Replies Latest reply on Oct 1, 2012 1:03 PM by Chris Martin

    Richfaces 4.2.2.Final

    Chris Martin Newbie

      I am using Richfaces 4.2.2.Final with facelets to create a toolbar and menu with menu items which have links to other web resources ( other facelets ) . The components are displaying correctly but the links are not doing anything. I am using using IE 8.  There are no errors and using IE 8's developers tools it looks like the the like is never getting activated.  I have take the same link and put it elsewhere in the applications facelet resources and it is working. There problem seems to be specific to the menu item. I have also modifed the s link to a h link and h outputlink but the result is the same.

       

       

       

      <ui:composition 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:s="http://jboss.org/schema/seam/taglib"

                      xmlns:rich="http://richfaces.org/rich">

          <f:subview id="headerBar">

              <h:form styleClass="menuForm">

                  <rich:toolbar

                              styleClass="toolBarMenu"

                          itemSeparator="line">

                      <rich:toolbarGroup  itemSeparator="line" >

                            <rich:dropDownMenu styleClass="menuItem" >

                              <f:facet name="label">

                                  <h:outputText value="Administration" styleClass="menuItem"/>

                              </f:facet>

                               <rich:menuItem >

                              <s:link disabled="false" view="/SomeList.xhtml"

                                      value="SomeList"

                                      id="SomeId"

                                    />

                            </rich:menuItem>

                          </rich:dropDownMenu>

                          <rich:dropDownMenu styleClass="menuItem"   >

                            <f:facet name="label">

                            <h:outputText value="Reports" styleClass="menuItem"/>

                          </f:facet>

                            <rich:menuItem submitMode="none"  >

                            <h:outputLink value="#{environment.getProperty('report.comment.summary')}" styleClass="subMenuItem">

                              <h:outputText value="Comment Summary"></h:outputText>

                            </h:outputLink>

                          </rich:menuItem>

                           <rich:menuItem submitMode="none">

                            <h:outputLink value="#{environment.getProperty('report.results.byRecruiter')}" styleClass="subMenuItem">

                              <h:outputText value="Results by x"></h:outputText>

                            </h:outputLink>

                          </rich:menuItem>

                            <rich:menuItem submitMode="none">

                            <h:outputLink value="#{environment.getProperty('report.response.byRecruiter')}" styleClass="subMenuItem">

                              <h:outputText value="Response by x"></h:outputText>

                            </h:outputLink>

                          </rich:menuItem>

                          </rich:dropDownMenu>

                      </rich:toolbarGroup>

                      </rich:toolbar>

              </h:form>

          </f:subview>

      </ui:composition>

       

      My Pom:

      <?xml version="1.0" encoding="UTF-8"?>

      <project xmlns="http://maven.apache.org/POM/4.0.0"

               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

          <modelVersion>4.0.0</modelVersion>

          <groupId>confidential</groupId>

          <artifactId>confidential</artifactId>

          <packaging>war</packaging>

          <name>confidential</name>

          <version>1.0.0.0</version>

          <description>JBoss Seam RichFaces Web Application</description>

       

       

          <repositories>

              <repository>

                  <id>confidential</id>

                  <url>http://confidential/nexus/content/groups/public</url>

              </repository>

          </repositories>

       

       

          <build>

              <plugins>

                  <plugin>

                      <groupId>org.zeroturnaround</groupId>

                      <artifactId>jrebel-maven-plugin</artifactId>

                      <version>1.1.3</version>

                      <executions>

                          <execution>

                              <id>generate-rebel-xml</id>

                              <phase>process-resources</phase>

                              <goals>

                                  <goal>generate</goal>

                              </goals>

                              <configuration>

                                  <packaging>war</packaging>

                                  <relativePath>../../../</relativePath>

                                  <rootPath>${my.projects.home}</rootPath>

                              </configuration>

                          </execution>

                      </executions>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-resources-plugin</artifactId>

                      <version>2.3</version>

                      <configuration>

                          <encoding>UTF-8</encoding>

                      </configuration>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-compiler-plugin</artifactId>

                      <version>2.0.2</version>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-war-plugin</artifactId>

                      <version>2.0.2</version>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-clean-plugin</artifactId>

                      <version>2.2</version>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-compiler-plugin</artifactId>

                      <configuration>

                          <source>1.7</source>

                          <target>1.7</target>

                      </configuration>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-enforcer-plugin</artifactId>

                      <executions>

                          <execution>

                              <id>enforce-properties</id>

                              <goals>

                                  <goal>enforce</goal>

                              </goals>

                              <configuration>

                                  <rules>

                                      <requireProperty>

                                          <property>checkstyle.config.file</property>

                                          <message>You must define checkstyle.config.file property in your settings.xml file

                                              or at the

                                              command line

                                          </message>

                                      </requireProperty>

                                      <requireProperty>

                                          <property>jboss.home</property>

                                          <message>You must define jboss.home property in your settings.xml file or at the

                                              command line

                                          </message>

                                      </requireProperty>

                                      <requireProperty>

                                          <property>jboss.configuration</property>

                                          <message>You must define jboss.configuration [standard, default, all, etc...]

                                              property in your settings.xml file or at the command line

                                          </message>

                                      </requireProperty>

                                  </rules>

                              </configuration>

                          </execution>

                      </executions>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-dependency-plugin</artifactId>

                      <executions>

                          <execution>

                              <id>unpack</id>

                              <phase>install</phase>

                              <goals>

                                  <goal>unpack</goal>

                              </goals>

                              <configuration>

                                  <artifactItems>

                                      <artifactItem>

                                          <artifactId>${project.artifactId}</artifactId>

                                          <groupId>${project.groupId}</groupId>

                                          <version>${project.version}</version>

                                          <type>war</type>

                                          <overWrite>true</overWrite>

                                          <outputDirectory>

                                              ${jboss.home}/${jboss.configuration}/deployments/${project.build.finalName}.${project.packaging}

                                          </outputDirectory>

                                      </artifactItem>

                                  </artifactItems>

                              </configuration>

                          </execution>

                      </executions>

                  </plugin>

                  <plugin>

                      <artifactId>maven-clean-plugin</artifactId>

                      <configuration>

                          <filesets>

                              <fileset>

                                  <directory>${jboss.home}/${jboss.configuration}/deployments/</directory>

                                  <includes>

                                      <include>${project.build.finalName}.${project.packaging}*</include>

                                  </includes>

                                  <followSymlinks>false</followSymlinks>

                              </fileset>

                          </filesets>

                      </configuration>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-antrun-plugin</artifactId>

                      <version>1.7</version>

                      <executions>

                          <execution>

                              <phase>install</phase>

                              <goals>

                                  <goal>run</goal>

                              </goals>

                              <configuration>

                                  <target>

                                      <touch

                                              file="${jboss.home}/${jboss.configuration}/deployments/${project.build.finalName}.${project.packaging}.dodeploy"/>

                                  </target>

                              </configuration>

                          </execution>

                      </executions>

                  </plugin>

              </plugins>

          </build>

       

       

          <dependencies>

              <dependency>

                  <groupId>org.hibernate.javax.persistence</groupId>

                  <artifactId>hibernate-jpa-2.0-api</artifactId>

                  <version>1.0.1.Final</version>

                  <scope>provided</scope>

              </dependency>

              <dependency>

                  <groupId>org.hibernate</groupId>

                  <artifactId>hibernate-validator</artifactId>

                  <version>4.2.0.Final</version>

                  <scope>provided</scope>

              </dependency>

              <dependency>

                  <groupId>org.hibernate</groupId>

                  <artifactId>hibernate-entitymanager</artifactId>

                  <version>4.1.1.Final</version>

                  <scope>provided</scope>

              </dependency>

              <dependency>

                  <groupId>com.sun.facelets</groupId>

                  <artifactId>jsf-facelets</artifactId>

                  <version>1.1.9</version>

              </dependency>

              <dependency>

                  <groupId>org.jboss.el</groupId>

                  <artifactId>jboss-el</artifactId>

                  <version>1.0_02.CR6</version>

              </dependency>

              <dependency>

                  <groupId>org.hibernate</groupId>

                  <artifactId>hibernate-envers</artifactId>

                  <version>4.1.1.Final</version>

                  <scope>provided</scope>

              </dependency>

              <dependency>

                  <groupId>com.cox.sites.common.security</groupId>

                  <artifactId>coxsecurity</artifactId>

                  <version>1.1.4.0</version>

                  <scope>provided</scope>

              </dependency>

              <dependency>

                  <groupId>org.jboss.spec.javax.servlet</groupId>

                  <artifactId>jboss-servlet-api_3.0_spec</artifactId>

                  <version>1.0.1.Final</version>

              </dependency>

       

       

              <dependency>

                  <groupId>org.jboss.seam</groupId>

                  <artifactId>jboss-seam</artifactId>

                  <version>2.3.0.Final</version>

                  <exclusions>

                      <exclusion>

                          <groupId>org.testng</groupId>

                          <artifactId>testng</artifactId>

                      </exclusion>

                      <exclusion>

                          <groupId>junit</groupId>

                          <artifactId>junit</artifactId>

                      </exclusion>

                      <exclusion>

                          <groupId>org.jboss.spec.javax.faces</groupId>

                          <artifactId>jboss-jsf-api_2.1_spec</artifactId>

                      </exclusion>

                      <exclusion>

                          <groupId>javax.el</groupId>

                          <artifactId>el-api</artifactId>

                      </exclusion>

                  </exclusions>

              </dependency>

              <dependency>

                  <groupId>org.jboss.spec.javax.faces</groupId>

                  <artifactId>jboss-jsf-api_2.1_spec</artifactId>

                  <version>2.0.2.Final</version>

                  <scope>provided</scope>

              </dependency>

       

       

              <dependency>

                  <groupId>org.jboss.seam</groupId>

                  <artifactId>jboss-seam-ui</artifactId>

                  <version>2.3.0.Final</version>

                  <exclusions>

                      <exclusion>

                          <groupId>org.jboss.seam</groupId>

                          <artifactId>jboss-seam-jul</artifactId>

                      </exclusion>

                      <exclusion>

                          <groupId>org.jboss.seam</groupId>

                          <artifactId>jboss-seam</artifactId>

                      </exclusion>

                  </exclusions>

              </dependency>

              <dependency>

                  <groupId>org.jboss.seam</groupId>

                  <artifactId>jboss-seam-debug</artifactId>

                  <version>2.3.0.Final</version>

                  <exclusions>

                      <exclusion>

                          <groupId>org.jboss.seam</groupId>

                          <artifactId>jboss-seam</artifactId>

                      </exclusion>

                  </exclusions>

              </dependency>

              <dependency>

                  <groupId>commons-beanutils</groupId>

                  <artifactId>commons-beanutils</artifactId>

                  <version>1.6</version>

                  <exclusions>

                      <exclusion>

                          <groupId>commons-collections</groupId>

                          <artifactId>commons-collections</artifactId>

                      </exclusion>

                  </exclusions>

              </dependency>

              <dependency>

                  <groupId>commons-logging</groupId>

                  <artifactId>commons-logging</artifactId>

                  <version>1.1.1</version>

              </dependency>

              <dependency>

                  <groupId>org.richfaces.ui</groupId>

                  <artifactId>richfaces-components-ui</artifactId>

                  <version>4.2.2.Final</version>

       

       

              </dependency>

              <dependency>

                  <groupId>org.richfaces.core</groupId>

                  <artifactId>richfaces-core-impl</artifactId>

                  <version>4.2.2.Final</version>

                </dependency>

              <dependency>

                  <groupId>org.richfaces.core</groupId>

                  <artifactId>richfaces-core-api</artifactId>

                  <version>4.2.2.Final</version>

                </dependency>

              <dependency>

                  <groupId>commons-configuration</groupId>

                  <artifactId>commons-configuration</artifactId>

                  <version>1.8</version>

                  <exclusions>

                      <exclusion>

                          <groupId>commons-lang</groupId>

                          <artifactId>commons-lang</artifactId>

                      </exclusion>

                  </exclusions>

              </dependency>

              <dependency>

                  <groupId>org.apache.commons</groupId>

                  <artifactId>commons-email</artifactId>

                  <version>1.2</version>

              </dependency>

              <dependency>

                  <groupId>commons-lang</groupId>

                  <artifactId>commons-lang</artifactId>

                  <version>2.4</version>

              </dependency>

       

       

          </dependencies>

       

       

          <reporting>

              <plugins>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-checkstyle-plugin</artifactId>

                      <version>2.7</version>

                      <configuration>

                          <configLocation>${checkstyle.config.file}</configLocation>

                      </configuration>

                  </plugin>

              </plugins>

          </reporting>

       

       

      </project>