Hi Cagatay
Previously I was using Primefaces 0.9.3 version which was working fine. Now I have changed that jar with the new Primefaces 2.0.0 version where I can see that the package structure has been changed. I also change my code accordingly.
I have also changed the Resource Servlet tag(class attribute ) in web.xml with the new package structure of ResourceServlet class.
Ex.
<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/primefaces_resources/*</url-pattern>
</servlet-mapping>
But when I start my application it's showing "PrimeFaces" is undefined error(javascript error). I think It might be some configuration issue.
I guess it cant recognize any p(primefaces) related tags. but I have included the primeface taglib.
ex. <%@ taglib uri="http://primefaces.prime.com.tr/ui" prefix="p"%>
Please suggest.
Regards,
Sanass
"PrimeFaces" is undefined error
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Hi Sanass,
You also need to change the url mapping as documented in http://code.google.com/p/primefaces/wik ... 093To100RC.
Should be;
I'm pretty sure it'll work
You also need to change the url mapping as documented in http://code.google.com/p/primefaces/wik ... 093To100RC.
Code: Select all
<url-pattern>/primefaces_resources/*</url-pattern>
Code: Select all
<url-pattern>/primefaces_resource/*</url-pattern>
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Yes, it has changed, sorry for the troubles but library is evolving towards stability
-
- Information
-
Who is online
Users browsing this forum: No registered users and 88 guests