PrimeFaces + RichFaces compatibility problem in IE

UI Components for JSF
Post Reply
dbondarevych
Posts: 8
Joined: 09 Apr 2010, 07:44

16 Apr 2010, 17:02

Hi!
What may be the problem of compatibility (RichFaces + PrimeFaces) in IE 7/8? I do my experiments on a simple project, and I can not get PrimeFaces interactive bar chart work cross all the browsers right. Problem refers only to IE 7/8 and appears only when I try to combine both types of components (RichFaces + PrimeFaces) in a one form.
Here is lib folder contents:
commons-beanutils:commons-beanutils:1.7.0
commons-codec:commons-codec:1.3
commons-collections:commons-collections:2.1.1
commons-collections:commons-collections:3.2
commons-digester:commons-digester:1.6
commons-digester:commons-digester:1.8.1
commons-io:commons-io:1.3.2
commons-lang:commons-lang:2.1
commons-logging:commons-logging:1.1
commons-validator:commons-validator:1.3.1
javax.faces:jsf-api:1.2-b19
javax.faces:jsf-impl:1.2-b19
org.primefaces:primefaces:1.0.1-snapshot
org.richfaces.framework:richfaces-api:3.3.1.GA
org.richfaces.framework:richfaces-impl:3.3.1.GA
org.richfaces.ui:richfaces-ui:3.3.1.GA

You can check it even on a simple example. (JSF 1.2-b19, PrimeFaces 1.0.1, RichFaces 3.3.2, JBoss 4.2.3)

//web-page

Code: Select all

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://primefaces.prime.com.tr/ui" prefix="p" %>

<html>
<f:view contentType="text/html">
<head>
<p:resources />
</head>
<body>

<h:form prependId="false"> 

<h:outputText id="selectedBar" value="#{chartBean.message}" />

<p:columnChart id="chart" styleClass="chartStyle"
               value="#{chartBean.births}" var="birth" xfield="#{birth.year}"
               itemSelectListener="#{chartBean.itemSelect}" update="selectedBar">
    <p:chartSeries label="Boys" value="#{birth.boys}" />
	<p:chartSeries label="Girls" value="#{birth.girls}" />
</p:columnChart>

<!-- a4j:commandButton value"Test" onclick="alert('Test');" /-->

</h:form>
</body>
</f:view>
</html>
//web.xml file

Code: Select all

<?xml version="1.0"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd" version="2.5">
	<context-param>
		<param-name>org.richfaces.SKIN</param-name>
		<param-value>blueSky</param-value>
	</context-param>
	<context-param>
		<param-name>org.richfaces.CONTROL_SKINNING</param-name>
		<param-value>enable</param-value>
	</context-param>
	<filter>
		<display-name>RichFaces Filter</display-name>
		<filter-name>richfaces</filter-name>
		<filter-class>org.ajax4jsf.Filter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>richfaces</filter-name>
		<servlet-name>Faces Servlet</servlet-name>
		<dispatcher>REQUEST</dispatcher>
		<dispatcher>FORWARD</dispatcher>
		<dispatcher>INCLUDE</dispatcher>
	</filter-mapping>

	<listener>
		<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
	</listener>

	<context-param>
		<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</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>
	<!-- Faces Servlet Mapping -->
	<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>*.jsf</url-pattern>
	</servlet-mapping>

	<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_resource/*</url-pattern>
	</servlet-mapping>  
  
	<context-param>        
		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>        
		<param-value>server</param-value>    
	</context-param>
	   
	<login-config>
		<auth-method>BASIC</auth-method>
	</login-config>
</web-app>
It works perfectly in all browsers. But if uncomment a4j:command button (it may be any other component from the RichFaces library) interactive chart stop working as interactive (Problems in IE7 / IE8. But FireFox still ok), but displays ok.

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

16 Apr 2010, 23:19

Can't figure out what's happening, try RichFaces forum, maybe they can come up with an idea.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests