10 Replies Latest reply on Feb 12, 2008 1:34 PM by vieri122

    does the richfaces3.1.4 support jsf1.2??

    vieri122

      if support.how to write the web.xml?
      I use the myclipse6.0 generated JSF1.1 web.xml to write richfaces the filter. Application fault
      However, I wrote in this JSF1.1 will not be any problem!
      I would like to ask how in the JSF1.2 should be configured?
      thanks

        • 1. Re: does the richfaces3.1.4 support jsf1.2??
          vieri122

          this is my content in the web.xml
          <context-param>
          <param-name>org.richfaces.SKIN</param-name>
          <param-value>blueSky</param-value>
          </context-param>

          <display-name>RichFaces Filter</display-name>
          <filter-name>richfaces</filter-name>
          <filter-class>org.ajax4jsf.Filter</filter-class>

          <filter-mapping>
          <filter-name>richfaces</filter-name>
          <servlet-name>Faces Servlet</servlet-name>
          REQUEST
          FORWARD
          INCLUDE
          </filter-mapping>

          in the JSF1.1 is right but in the JSF1.2 is wrong please tell me why?

          • 2. Re: does the richfaces3.1.4 support jsf1.2??
            viggo.navarsete

            which errors do you get? Have you consulted the developerguide found in the "important link" section on the frontpage of the forum? I think everything should be explained pretty well there about how to write your web.xml.

            • 3. Re: does the richfaces3.1.4 support jsf1.2??
              vieri122

              i know the richfaces3.1.4 do not support jsf1.2
              thank you all the same

              • 4. Re: does the richfaces3.1.4 support jsf1.2??
                mmichalek

                I'm not sure what you mean by

                i know the richfaces3.1.4 do not support jsf1.2


                I think a lot of people (including us) use RichFaces 3.1.4 with JSF 1.2. We use the Sun RI JSF 1.2.

                • 5. Re: does the richfaces3.1.4 support jsf1.2??
                  vieri122

                   

                  "mmichalek" wrote:


                  I think a lot of people (including us) use RichFaces 3.1.4 with JSF 1.2. We use the Sun RI JSF 1.2.

                  relly?
                  can you tell me how to write the filter in web.xml in jsf1.2

                  • 6. Re: does the richfaces3.1.4 support jsf1.2??
                    vieri122


                    <context-param>
                    <param-name>org.richfaces.SKIN</param-name>
                    <param-value>blueSky</param-value>
                    </context-param>

                    <display-name>RichFaces Filter</display-name>
                    <filter-name>richfaces</filter-name>
                    <filter-class>org.ajax4jsf.Filter</filter-class>

                    <filter-mapping>
                    <filter-name>richfaces</filter-name>
                    <servlet-name>Faces Servlet</servlet-name>
                    REQUEST
                    FORWARD
                    INCLUDE
                    </filter-mapping>

                    like these is right?

                    • 7. Re: does the richfaces3.1.4 support jsf1.2??
                      viggo.navarsete

                      I'm also using JSF 1.2 with Richfaces 3.1.x (I'm using 3.1.3.GA since all future version are too buggy when implementing Richfaces portlets). We also use Sun RI JSF 1.2.

                      • 8. Re: does the richfaces3.1.4 support jsf1.2??
                        viggo.navarsete

                        Here is my web.xml:

                        <?xml version="1.0"?>
                        <web-app version="2.5" 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-app_2_5.xsd">
                        
                         <description>RichFacesPortlet</description>
                        
                         <context-param>
                         <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
                         <param-value>
                         org.ajax4jsf.portlet.application.FaceletPortletViewHandler
                         </param-value>
                         </context-param>
                        
                        
                         <!-- TODO: Investigate why my action method isn't called when changing from ALL to NONE -->
                         <context-param>
                         <param-name>org.richfaces.LoadStyleStrategy</param-name>
                         <param-value>ALL</param-value>
                         </context-param>
                         <context-param>
                         <param-name>org.richfaces.LoadScriptStrategy</param-name>
                         <param-value>ALL</param-value>
                         </context-param>
                         <filter>
                         <display-name>Ajax4jsf Filter</display-name>
                         <filter-name>ajax4jsf</filter-name>
                         <filter-class>org.ajax4jsf.Filter</filter-class>
                         </filter>
                         <filter-mapping>
                         <filter-name>ajax4jsf</filter-name>
                         <servlet-name>FacesServlet</servlet-name>
                         <dispatcher>FORWARD</dispatcher>
                         <dispatcher>REQUEST</dispatcher>
                         <dispatcher>INCLUDE</dispatcher>
                         </filter-mapping>
                        
                         <context-param>
                         <param-name>facelets.DEVELOPMENT</param-name>
                         <param-value>false</param-value>
                         </context-param>
                         <context-param>
                         <param-name>facelets.SKIP_COMMENTS</param-name>
                         <param-value>true</param-value>
                         </context-param>
                         <context-param>
                         <param-name>facelets.VIEW_MAPPINGS</param-name>
                         <param-value>*.xhtml</param-value>
                         </context-param>
                         <context-param>
                         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                         <param-value>.xhtml</param-value>
                         </context-param>
                         <context-param>
                         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                         <param-value>server</param-value>
                         </context-param>
                        
                         <listener>
                         <listener-class>
                         com.sun.faces.config.ConfigureListener
                         </listener-class>
                         </listener>
                         <servlet>
                         <servlet-name>FacesServlet</servlet-name>
                         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                         <load-on-startup>1</load-on-startup>
                         </servlet>
                         <servlet-mapping>
                         <servlet-name>FacesServlet</servlet-name>
                         <url-pattern>/faces/*</url-pattern>
                         </servlet-mapping>
                         <mime-mapping>
                         <extension>svg</extension>
                         <mime-type>image/svg+xml</mime-type>
                         </mime-mapping>
                        </web-app>


                        • 9. Re: does the richfaces3.1.4 support jsf1.2??
                          viggo.navarsete

                          If you need more assistance in i.e. how faces-config.xml looks like, please tell me and I'll post some code from that as well.

                          • 10. Re: does the richfaces3.1.4 support jsf1.2??
                            vieri122

                            thanks viggo.navarsete
                            can you tell me you msn?
                            i think i have some other question to ask you

                            thank you again