-
1. Re: JBoss Seam + Facelets + Richfaces Tree StateWriter error
sergeysmirnov Mar 19, 2007 3:38 PM (in response to gingming)check that you have no FaceletsViewHandler declared twice. (in faces-config and web.xml). Be sure, it is in the web.xml, not in the faces-config
-
2. Re: JBoss Seam + Facelets + Richfaces Tree StateWriter error
alexanderbelov Mar 20, 2007 5:13 AM (in response to gingming)I have the same problem. I use Glassfish Beta, JSF1.2 RI, Facelets 1.1.11, Ajax4JSF 1.1.0.
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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"
version="2.5">
<!-- Use Documents Saved as *.xhtml -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</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>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
REQUEST
FORWARD
INCLUDE
</filter-mapping>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
</web-app>
faces-config.xml:
<?xml version='1.0' encoding='UTF-8'?>
<faces-config 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-facesconfig_1_2.xsd" version="1.2">
<locale-config>
<default-locale>ru</default-locale>
<supported-locale>ru</supported-locale>
<supported-locale>en</supported-locale>
</locale-config>
<view-handler>
com.sun.facelets.FaceletViewHandler
</view-handler>
</faces-config>
To tell the truth I can't see any mistake in configuration. But I can't resolve problem with StateWriter. -
3. Re: JBoss Seam + Facelets + Richfaces Tree StateWriter error
nbelaevski Mar 20, 2007 9:02 AM (in response to gingming)Hello!
The same problem has been reported for 1.2_02 JSF. That's StateWriter bug. It has been fixed in 1.2_04 JSF version. Please try to update! -
4. Re: JBoss Seam + Facelets + Richfaces Tree StateWriter error
alexanderbelov Mar 20, 2007 10:21 AM (in response to gingming)Thank you, nbelaevski.
This problem is resolved.