3 Replies Latest reply on Mar 8, 2010 7:01 AM by Nick Belaevski

    problems with facelets + richfaces

    leandro moreira Newbie

      I had a system all written in Richfaces ... so I decide to move on and add facelets to it.Then I start to read and apply some of examples...

      My web.xml

      <!-- JavaServer Faces

      Facelets -->

      <context-param>

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

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

      </context-param>


      <context-param>

        <param-name>facelets.DEVELOPMENT</param-name>

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

      </context-param>


      <context-param>

      <param-name>facelets.BUILD_BEFORE_RESTORE</param-name>

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

      </context-param>

       

      <!-- Richfaces + facelets -->

      <context-param>

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

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

      </context-param>

      <!-- Richfaces + facelets -->

      <filter>

        <display-name>RichFaces Filter</display-name>

        <filter-name>richfaces</filter-name>

        <filter-class>org.ajax4jsf.Filter</filter-class>

      </filter>

      <filter-mapping>

        <filter-name>richfaces</filter-name>

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

        <dispatcher>REQUEST</dispatcher>

        <dispatcher>FORWARD</dispatcher>

        <dispatcher>INCLUDE</dispatcher>

      </filter-mapping>

      <!-- JavaServer Faces -->

      <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>*.xhtml</url-pattern>

      </servlet-mapping>

      <welcome-file-list>

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

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

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

      </welcome-file-list>

      <login-config>

        <auth-method>BASIC</auth-method>

      </login-config>

      <!-- Richfaces -->

       

      My faces-config.xml (I don't do anything here about facelets... )

       

      I start to write some pages... sometimes the ajax support does not works... what should I do ? there any special configuratio? or tags order?