5 Replies Latest reply on Apr 8, 2011 3:18 PM by turocabrera

    richfaces 4.0.0.Final without seam framework

    turocabrera

      Hi, I have the following questions:

      Richfaces 4.0.0.Final can run without seam framework?

       

      I have a project with:

      spring.3.0.3.Release

      spring-security.

      hibernate.

       

      and I want add richfaces.4.0.0.Final without seam framework.

        • 1. richfaces 4.0.0.Final without seam framework
          juankprada

          Hi Eduardo,

           

          It does work without Seam. In fact it was not designed as a Seam component but as a JSF 2.0 framework so you can use it eanywhere where there is a JSF 2.0 implementation (Mojarra 2.0 or MyFaces 2.0) . Just follow the guides at http://community.jboss.org/wiki/richfaceswikihomepage in the Getting started section.

           

          Good luck with your project

          • 2. richfaces 4.0.0.Final without seam framework
            turocabrera

            Hi, thank by the response. I have the following problem....

             

            javax.faces.view.facelets.TagException: /pages/listaAsociado.jspx @75,62  Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: datascroller

             

            the library tld are not running.

             

            my web.xml is this. I am sorry my problem.

             

             

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

            <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"

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

                     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_2_5.xsd">

             

                <!-- Definiciones globales del aplicativo -->

               

                <display-name>Escuela</display-name>

                <description>Escuela para padres</description>

                <!-- context param de Mojarra -->

                <context-param>

                    <param-name>com.sun.faces.validateXml</param-name>

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

                </context-param>

                <context-param>

                    <param-name>com.sun.faces.displayConfiguration</param-name>

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

                </context-param>

                <!--   -->

               

                <context-param>

                    <param-name>org.richfaces.fileUpload.maxRequestSize</param-name>

                    <param-value>100000</param-value>

                </context-param>

                <context-param>

                    <param-name>org.richfaces.fileUpload.createTempFiles</param-name>

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

                </context-param>

               

                 <context-param>

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

              <param-value>Development</param-value>

            </context-param>

            <context-param>

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

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

            </context-param>

             

                <context-param>   

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

                    <param-value>.jspx</param-value>

                </context-param>

             

                <context-param>

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

                    <param-value>*.jspx</param-value>

                </context-param>

               

                <context-param>

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

                      <param-value>#{skinBean.skin}</param-value>

                </context-param>

                <context-param>

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

                      <param-value>Development</param-value>

                </context-param>

                <context-param>

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

                      <param-value>server</param-value>

                </context-param>

                <!-- PARA QUE EL JBOSS USE EL MYFACES DEL WAR -->

                <!--    

                <context-param>

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

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

                </context-param>

                 -->

                <!--

                <context-param>

                     <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

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

                </context-param>

                 -->

                    

                <context-param>

                    <param-name>javax.faces.application.CONFIG_FILES</param-name>

                    <param-value>/WEB-INF/faces-config.xml</param-value>

                </context-param>

                 

                  <!--

                <context-param> 

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

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

                 </context-param> 

                   -->

                <!-- Fin de la carga -->

               

                <!-- Carga de componentes del contexto del aplicativo -->

                <context-param>

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

                    <param-value>       

                        classpath:/ar/ong/padres/impl/config/spring-service.xml       

                    </param-value>

                </context-param>

               

               

                <!-- Listener que tiene que estar para que funcione spring -->

                <listener>

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

                </listener>

                <listener>

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

                </listener>

                <!-- listener de faces -->

             

                -->

                <!-- IntrospectorCleanupListener -->

                <listener>

                    <listener-class>

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

                </listener>

             

                <!-- Servlet de JSF -->

                <servlet>

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

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

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

                </servlet>

               

               

                <!-- Mapping -->

                <servlet-mapping>

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

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

                </servlet-mapping>   

             

                <servlet-mapping>

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

                    <url-pattern>/faces/*</url-pattern>

                </servlet-mapping>

               

                  <jsp-config>

                    <jsp-property-group>

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

                        <page-encoding>UTF-8</page-encoding>

                        <trim-directive-whitespaces>

                            true

                        </trim-directive-whitespaces>

                    </jsp-property-group>

                </jsp-config>

                <welcome-file-list>

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

                </welcome-file-list>

            <!--

                  

              -->

                <!--Este se debe sacar --> 

                   

                 <error-page>

                    <error-code>403</error-code>

                    <location>/pages/accesoDenegado.jsf</location>

                </error-page>

                <session-config>

                    <session-timeout>20</session-timeout><!-- minutes of inactivity -->

                </session-config>

            </web-app>

            • 3. richfaces 4.0.0.Final without seam framework
              juankprada

              First. Are you using JSF 2.0? RichFaces 4 supports only JSF 2.0

               

              Now, assuming you are using JSF 2.0 I can see you are using a tag named datascroller. You are not showing how you are using it but I'll asume you are using <rich:datascroller /> hence the error

               

              If that is the case the the error that a tag named datascroller cant be found and that is because the data scroller component must be called <rich:dataScroller /> (see the S in uppercase)

               

              Check that, and be sure to be running JSF 2.0 (i.e ditch jsp)

               

              good luck

              • 4. Re: richfaces 4.0.0.Final without seam framework
                lfryc

                Arturo, you need to be aware of correct case: use <rich:dataScroller /> instead of <rich:datascroller />

                • 5. richfaces 4.0.0.Final without seam framework
                  turocabrera

                  thanks, Juan and Lukas. I was seeing that there are syntax changes in migration. Thanks.