Installation

Sample application

1. Download the sample application WAR (see download section)

2. Deploy the WAR on Tomcat 5.X.X

Use xulfaces in your own application

1. Download the xulfaces distribution (see Download section).

2. Download dependencies : JSF 1.2 RI.

3. Create a web application and add JSF RI JARs, TLDs, DTDs to /WEB-INF/lib.

4. Unzip xulfaces distribution.



Extract xulfaces-config.xml from the xulfaces JAR (META-INF/xulfaces-config.xml) and put it into /WEB-INF.

Add xulfaces JAR to /WEB-INF/lib.

5. Configure your web application.



Here is web.xml :


<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC
  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

	<context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
    </context-param>

    <context-param>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>/WEB-INF/xulfaces-config.xml</param-value>
    </context-param>

    <context-param>
        <param-name>com.sun.faces.validateXml</param-name>
        <param-value>true</param-value>
    </context-param>

	<!-- Faces Servlet -->
	<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>*.xul</url-pattern>
	</servlet-mapping>

	<!-- Welcome files -->
	<welcome-file-list>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>index.html</welcome-file>
	</welcome-file-list>

</web-app>

				

Important notes

J2SE 1.5 (Tiger) is required.

Use Tomcat 5.X.X for your development and deployment.