Does Primefaces require Servlet 3.0?

UI Components for JSF
Post Reply
Alan
Posts: 102
Joined: 25 Oct 2010, 04:45

02 Feb 2011, 21:31

Is a Servlet 3.0 implementation required for Primefaces?

If so, what features are used for what?

Another way of putting it is can you use Primefaces 2.2 with Tomcat 6, which doesn't have Servlet 3.0.
Netbeans 7.1, GlassFish 3.1.1, MacOS X 10.6.8, Safari, Firefox

chaseven
Posts: 16
Joined: 13 Jan 2011, 12:49

02 Feb 2011, 21:47

hi Allan

in my application I use with servlet 2.5 (jboss 5.1)

There was a time I've tested it with tomcat 6 and had no problems
simply add the JSF libraries (in my case I prefer mojarra 2.0.3) and the PrimeFaces.jar

Alan
Posts: 102
Joined: 25 Oct 2010, 04:45

02 Feb 2011, 22:06

Thanks, chaseven.

I read in another thread that Tomcat 6 needed additional configuration in the web.xml to allow Primefaces to work. Did you run into that and were there any other issues?

This is the thread to which I refer.
Netbeans 7.1, GlassFish 3.1.1, MacOS X 10.6.8, Safari, Firefox

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Feb 2011, 22:23

PrimeFaces and JSF 2.0 requires Servlet 2.5 at least.

PrimeFaces does not require any configuration as of 2.2.

chaseven
Posts: 16
Joined: 13 Jan 2011, 12:49

02 Feb 2011, 22:25

Alan

Here are my web.xml:

Code: Select all

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

	<servlet>
		<servlet-name>Resource Servlet</servlet-name>
		<servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>Resource Servlet</servlet-name>
		<url-pattern>/primefaces_resource/*</url-pattern>
	</servlet-mapping>


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests