0 Replies Latest reply on Mar 14, 2013 9:25 AM by amadoulamine1

    [Spring][JSF][Richfaces]Rich tag doesn't execute

    amadoulamine1

      Hi all; I have an application spring 3.2 richfaces 4.3.1 and jsf 2.1.17

       

      When i try to execute the pages, "<rich:>" tag doesn't execute

       

      the web page :index.xhtml

       


       

      <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  

      <html xmlns="http://www.w3.org/1999/xhtml"

      xmlns:h="http://java.sun.com/jsf/html"

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

      xmlns:a4j="http://richfaces.org/a4j"

      xmlns:c="http://java.sun.com/jstl/core"

      xmlns:ui="http://java.sun.com/jsf/facelets"

      xmlns:f="http://java.sun.com/jsf/core">

            

      <f:view>

      <h:head></h:head>

      <h:body>

                 <h:form>

          <rich:panel header="Richfaces running on JBoss AS 7">

       

       

            <ul>

              <li style="BACKGROUND-COLOR: #0000ff;">RichFaces is a component library for JSF</li>

              <li>easily integrating AJAX capabilities.</li>

           </ul>

          </rich:panel>

         

           <rich:panel header="Panel with default Look-n-feel">

              <h:graphicImage value="/images/icons/common/rf.png" style="float:right" alt="rf" />

              RichFaces is a component library for JSF and an advanced framework for

              easily integrating AJAX capabilities into business applications.

              <ul>

                  <li>100+ AJAX enabled components in two libraries</li>

                  <li>a4j: page centric AJAX controls</li>

                  <li>rich: self contained, ready to use components</li>

                  <li>Whole set of JSF benefits while working with AJAX</li>

                  <li>Skinnability mechanism</li>

                  <li>Component Development Kit (CDK)</li>

                  <li>Dynamic resources handling</li>

                  <li>Testing facilities for components, actions, listeners, and pages</li>

                  <li>Broad cross-browser support</li>

                  <li>Large and active community</li>

              </ul>

          </rich:panel>

          <p>

              <b>Panel without header:</b>

          </p>

          <rich:panel>

              <p>

                  <b>JSF 2 and RichFaces 4:</b>

              </p>

       

              <p>We are working hard on RichFaces 4.0 which will have full JSF 2 integration. That is not all though, here is a

                  summary of updates and features:</p>

              <ul>

                  <li>Redesigned modular repository and build system.</li>

                  <li>Simplified Component Development Kit with annotations, faces-config extensions, advanced templates support

                      and more..</li>

                  <li>Ajax framework improvements extending the JSF 2 specification.</li>

                  <li>Component review for consistency, usability, and redesign following semantic HTML principles where

                      possible.</li>

                  <li>Both server-side and client-side performance optimization.</li>

                  <li>Strict code clean-up and review.</li>

              </ul>

          </rich:panel>

          </h:form>

        </h:body>

      </f:view>

       

       

      </html>

       



      web.xml

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24
      25
      26
      27
      28
      29
      30
      31
      32
      33
      34
      35
      36
      37
      38
      39
      40
      41
      42
      43
      44
      45
      46
      47
      48
      49
      50
      51
      52
      53
      54
      55
      56
      57
      58
      59
      60

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

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">

        <display-name>app-test</display-name>

      <context-param>

                    <param-name>log4jConfigLocation</param-name>

                    <param-value>classpath:log4j.properties</param-value>

          </context-param>

          <listener>

                    <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>

          </listener>

           <context-param>

                    <param-name>contextConfigLocation</param-name>

                    <param-value>classpath:applicationContext.xml</param-value>

          </context-param>

          <listener>

                    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

          </listener>

          <listener>

                    <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>

          </listener>

                <context-param>

                    <param-name>org.richfaces.skin</param-name>

                    <param-value>blueSky</param-value>

                </context-param>

                <context-param>

                           <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>

                           <param-value>com.sun.facelets.FaceletViewHandler</param-value>

                </context-param>

       

      <context-param>

                     <param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>

                     <param-value>true</param-value>

                </context-param>

       

       

                <context-param>

                          <param-name>javax.faces.DEFAULT_SUFFIX</param-name>

                          <param-value>.xhtml</param-value>

                  </context-param>

       

                 <session-config>

              <session-timeout>30</session-timeout>

          </session-config>

         

        <welcome-file-list>

          <welcome-file>index.html</welcome-file>

        </welcome-file-list>

       

        <servlet>

        <servlet-name>Faces Servlet</servlet-name>

        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

        <load-on-startup>1</load-on-startup>

      </servlet>

      <servlet-mapping>

        <servlet-name>Faces Servlet</servlet-name>

        <url-pattern>*.jsf</url-pattern>

      </servlet-mapping>

      </web-app>

       



      and my faces config

       

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11

      12

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

        <faces-config

          xmlns="http://java.sun.com/xml/ns/javaee"

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

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd"

          version="2.1">

                <application>

                    <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>

                  </application>

      </faces-config>

       

       

       

      i join the lib file

       

      Please anyone can help me ??