Richfaces 3.1.3 javascript source links not created
wbossons Jan 2, 2008 9:52 AMI upgraded to Richfaces 3.1.3 from Ajax4jsf. There was a problem with
Ajax4jsf in my environment where it wasn't generating the javascript
source code in the head, so I had to add the link myself.
The same issue occurs with RichFaces.
I can't figure out the path to the richfaces javascript code. Can anyone help me? I'm only currently using the a4j:commandLink.
The other solution which would be best is how to get this working correctly. My environment is Shale Tiles, JSF 1.2 on Glassfish.
Also, if there is anyone interested in a challenge, why doesn't forceparser work in this environment either? The issue is that when richfaces or ajax4jsf is present in my environment, it appears to force parsing on every page, which is a problem because my project is xhtml transitional.
Here's a glimpse of my web.xml:
<?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" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>false</param-value>
</context-param>
...
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<init-param>
<param-name>forceparser</param-name>
<param-value>false</param-value>
</init-param>
...
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
REQUEST
FORWARD
INCLUDE
</filter-mapping>
...
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>edu.harvard.hmdc.vdcnet.web.servlet.VDCFacesServlet</servlet-class>
<init-param>
<param-name>errorPage</param-name>
<param-value>/ExceptionHandler</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<servlet-name>Default Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<servlet-name>Tiles Servlet</servlet-name>
<servlet-class>org.apache.tiles.servlets.TilesServlet</servlet-class>
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
...
</web-app>
Thanks in advance for any help you can offer.
..\Wendy