2 Replies Latest reply on Jul 18, 2011 11:11 PM by Carlos juarez

    Richfaces 4 without Maven

    Dana Heath Newbie

      I am interested in configuring a web project to use Richfaces 4 but not with Maven. Does anyone have an example web.xml and associated dependencies? Thanks

        • 1. Re: Richfaces 4 without Maven
          Ilya Shaikovsky Master

          check readme's from distribution. RF related dependencies listed there. Also you could just download configured and built re-showcase there

          • 2. Re: Richfaces 4 without Maven
            Carlos juarez Newbie

            Here is richfaces-showcase example. An advice.. I would like the richfaces-showcase source code were available at some site,  not the maven structure, since I am not able tu build the app because at my work there is a hard proxy.

             

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

            <web-app id="richfaces-showcase" 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">

                <display-name>richfaces-showcase</display-name>

                <context-param>

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

                    <param-value>/WEB-INF/app-tags.taglib.xml</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>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>false</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>

                <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>

                <servlet-mapping>

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

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

                </servlet-mapping>

                <welcome-file-list>

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

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

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

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

                    <welcome-file>default.htm</welcome-file>

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

                </welcome-file-list>

                <mime-mapping>

                    <extension>xcss</extension>

                    <mime-type>text/css</mime-type>

                </mime-mapping>

                <login-config>

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

                </login-config>

            </web-app>