-
1. Re: DataScroller not working with IE7 - using Richfaces 3.2.
ilya_shaikovsky Sep 4, 2009 3:58 AM (in response to rashok11)Try 3.3.1 GA or 3.3.2 SNAPSHOT.
if the same ptroblem - attach code. -
2. Re: DataScroller not working with IE7 - using Richfaces 3.2.
ilya_shaikovsky Sep 4, 2009 3:58 AM (in response to rashok11)or 3.3.2 CR1 if you can't use snapshots :)
-
3. Re: DataScroller not working with IE7 - using Richfaces 3.2.
rashok11 Sep 4, 2009 10:25 AM (in response to rashok11)I have Richfaces 3.3.2 GA and SNAPSHOT both. In fact any version Richfaces 3.2.2 or above throws me javascript error "Richfaces is undefined". I get the same error in both IE6 and IE7.
BTW, I'm using Jboss portal 2.6.2 GA.
Do I need to upgrade my portal server, if I use Richfaces 3.2.2 or above?
here is the jsp code:
-----------------------
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<f:view>
<f:loadBundle basename="properties.eccs_messages" var="eccs_messages"/>
<h:form>
<h:outputLabel for="group" styleClass="eccs-portlet-form-field-label">
<h:outputText value="#{eccs_messages['label_group']}"/>
</h:outputLabel>
<h:selectOneMenu id="group" styleClass="eccs-portlet-form-field"
required="true"
value="#{routingVariableList.groupId}">
<f:selectItems value="#{routingVariableList.groupList}"/>
</h:selectOneMenu>
<h:commandButton id="filterGroup" value="#{eccs_messages['btn_filter']}" action="#{routingVariableList.filterByGroup}" />
</h:form>
<h:form>
<h:commandButton id="refresh" value="#{eccs_messages['btn_refresh']}" action="#{routingVariableList.refresh}" />
</h:form>
<h:form>
<rich:dataTable
id="varList"
rowClasses=",portlet-table-alternate"
headerClass="portlet-table-header"
value="#{routingVariableList.list}"
var="rv"
border="1"
rows="2"
>
<rich:column>
<f:facet name="header">
<h:outputText value="#{eccs_messages['label_action']}" />
</f:facet>
<h:commandLink action="#{routingVariable.showEdit}" rendered="#{rv.currentUserPermission != 0}">
<h:outputText value="#{eccs_messages['label_edit']}"/>
<f:param name="groupId" value="#{rv.id.rvGroupId}" />
<f:param name="rvId" value="#{rv.id.rvId}" />
</h:commandLink>
<h:commandLink action="#{routingVariable.showEdit}" rendered="#{rv.currentUserPermission == 0}">
<h:outputText value="#{eccs_messages['label_view']}"/>
<f:param name="groupId" value="#{rv.id.rvGroupId}" />
<f:param name="rvId" value="#{rv.id.rvId}" />
</h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink action="#{routingVariable.showHistory}">
<h:outputText value="#{eccs_messages['label_history']}"/>
<f:param name="groupId" value="#{rv.id.rvGroupId}" />
<f:param name="rvId" value="#{rv.id.rvId}" />
</h:commandLink>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{eccs_messages['list_lbl_group']}" />
</f:facet>
<h:outputText value="#{rv.groups.groupName}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{eccs_messages['list_lbl_name']}" />
</f:facet>
<h:outputText value="#{rv.displayName}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{eccs_messages['list_lbl_type']}" />
</f:facet>
<h:outputText value="#{rv.routingVariableTypes.typeName}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{eccs_messages['list_lbl_value']}" />
</f:facet>
<h:outputText value="#{rv}">
<f:converter converterId="eloyalty.VariableValueConverter" />
</h:outputText>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{eccs_messages['list_lbl_status']}" />
</f:facet>
<h:outputText value="#{rv}">
<f:converter converterId="eloyalty.VariableStatusConverter" />
</h:outputText>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{eccs_messages['list_lbl_updated_by']}" />
</f:facet>
<h:outputText value="#{rv.updatedBy}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{eccs_messages['list_lbl_update_date']}" />
</f:facet>
<h:outputText value="#{rv.updatedDate}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{eccs_messages['list_lbl_permission']}" />
</f:facet>
<h:outputText value="#{rv}">
<f:converter converterId="eloyalty.VariablePermissionConverter" />
</h:outputText>
</rich:column>
</rich:dataTable>
<h:panelGrid columns="1">
<rich:datascroller id="scroll_1" for="varList" >
</rich:datascroller>
</h:panelGrid>
</h:form>
</f:view>
--------------------------------- -
4. Re: DataScroller not working with IE7 - using Richfaces 3.2.
rashok11 Sep 4, 2009 10:35 AM (in response to rashok11)I also verified that the javascript error "Richfaces is undefined" comes from the data scroller component. If I continue with the error, the page gets loaded, the data scroller loses all the styles and clicking on any of the pages, throws again the "Richfaces is undefined" error.
-
5. Re: DataScroller not working with IE7 - using Richfaces 3.2.
nbelaevski Sep 4, 2009 11:13 AM (in response to rashok11)Hi,
Looks like JavaScript conflict. Type this in address barjavascript:alert(Prototype.Version)
after the page is loaded and press enter key -
6. Re: DataScroller not working with IE7 - using Richfaces 3.2.
rashok11 Sep 4, 2009 11:20 AM (in response to rashok11)Thanks for the quick response.
I did, the alert showed 1.5.0 -
7. Re: DataScroller not working with IE7 - using Richfaces 3.2.
nbelaevski Sep 4, 2009 12:29 PM (in response to rashok11)Yes, that's version conflict. Solution is to update portal with the latest version of prototype.js and scriptaculo.us script (you can extract them from RF .jar).
-
8. Re: DataScroller not working with IE7 - using Richfaces 3.2.
rashok11 Sep 4, 2009 12:53 PM (in response to rashok11)Thanks. Do I need to upgrade my portal verson or just updating these js files in the portal jar should work?
Also, do you can which portal jar should have these files? -
9. Re: DataScroller not working with IE7 - using Richfaces 3.2.
rashok11 Sep 4, 2009 2:03 PM (in response to rashok11)I have extractd the scriptaculous.js and prototype.js files from RF jar and applied to the portal-ajax.war and tried.
Still I am getting the javascript error "Richfaces is undefined" and my prototype version shows now 1.6.0.3 -
10. Re: DataScroller not working with IE7 - using Richfaces 3.2.
nbelaevski Sep 4, 2009 2:04 PM (in response to rashok11)Hi,
I haven't tried this with 2.6.2, so try updating files and check. Sorry, I don't remember where they were, search for "prototype" including archive contents. Do not forget to clear browser cache after upgrading before checking results. -
11. Re: DataScroller not working with IE7 - using Richfaces 3.2.
nbelaevski Sep 4, 2009 5:28 PM (in response to rashok11)Please check that you are using the latest version of portlet bridge.
-
12. Re: DataScroller not working with IE7 - using Richfaces 3.2.
rashok11 Sep 8, 2009 10:27 AM (in response to rashok11)I have portlet-bridge CR2. After copying the scriptaculous.js, prototype.js from the RF files to the portal.sar, I have cleared the cache, cleared the tmp and work folders in the server, I still get the 'Richfaces is undefined' problem.
Here is my web.xml<?xml version="1.0"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <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> <context-param> <param-name>org.richfaces.LoadStyleStrategy</param-name> <param-value>ALL</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.richfaces.SKIN</param-name> <param-value>blueSky</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.RESOURCE_URI_PREFIX</param-name> <param-value>rfRes</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> </web-app>
Here is my jboss-portlet.xml<portlet-app> <portlet> <portlet-name>RoutingVariableEditorPortlet</portlet-name> <header-content> <script src="/faces/rfRes/org/ajax4jsf/framework.pack.js" type="text/javascript"></script> <script src="/faces/rfRes/org/richfaces/ui.pack.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="/css/main.css" title="" media="screen" /> </header-content> </portlet> </portlet-app>
Here is my portlet.xml file,<?xml version="1.0" encoding="UTF-8"?> <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0"> <portlet> <portlet-name>RoutingVariableEditorPortlet</portlet-name> <portlet-class>com.sun.faces.portlet.FacesPortlet</portlet-class> <init-param> <name>com.sun.faces.portlet.INIT_VIEW</name> <value>/WEB-INF/jsp/rvlist.jsp</value> </init-param> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> <portlet-info> <title>Routing Console Editor</title> </portlet-info> </portlet> </portlet-app>
Here is my list of jar files under web-inf\lib folder
Directory of C:\ECCS3\java\jboss-portal-2.6.2.GA\server\default\deploy\routingvariableeditorportlet.war\WEB-INF\li
9/04/2009 05:52 PM .
9/04/2009 05:52 PM ..
6/14/2008 04:14 PM 33,202 axis-ant.jar
6/14/2008 04:14 PM 1,599,570 axis.jar
6/02/2008 11:37 AM 188,671 commons-beanutils-1.7.0.jar
6/14/2008 04:14 PM 46,725 commons-codec-1.3.jar
6/02/2008 11:36 AM 559,366 commons-collections-3.1.jar
6/14/2008 04:14 PM 571,259 commons-collections-3.2.jar
6/02/2008 11:37 AM 168,446 commons-digester-1.6.jar
6/14/2008 04:14 PM 143,602 commons-digester-1.8.jar
6/02/2008 11:37 AM 71,442 commons-discovery-0.2.jar
6/14/2008 04:14 PM 76,685 commons-discovery-0.4.jar
6/02/2008 11:36 AM 112,341 commons-el.jar
6/02/2008 11:36 AM 207,723 commons-lang-2.1.jar
6/14/2008 04:14 PM 31,191 jaxrpc.jar
6/14/2008 04:14 PM 70,416 jsf-portlet.jar
9/03/2009 06:26 PM 68,322 portlet-3.1.2.GA.jar
5/06/2009 04:25 PM 15,966 portletbridge-api-1.0.0.CR2.jar
5/06/2009 04:25 PM 184,533 portletbridge-impl-1.0.0.CR2.jar
9/04/2009 08:44 AM 174,900 richfaces-api-3.3.2-20090904.100908-94.jar
9/04/2009 08:47 AM 1,557,743 richfaces-impl-3.3.2-20090904.100908-94.jar
9/04/2009 08:46 AM 4,433,292 richfaces-ui-3.3.2-20090904.100908-88.jar
9/01/2009 06:59 PM 199,839 routingvariableeditorportlet-lib.jar
6/14/2008 04:14 PM 18,979 saaj.jar
6/14/2008 04:14 PM 2,941,389 tomahawk-1.1.6.jar
6/14/2008 04:14 PM 126,771 wsdl4j-1.5.1.jar -
13. Re: DataScroller not working with IE7 - using Richfaces 3.2.
nbelaevski Sep 8, 2009 8:51 PM (in response to rashok11)Not sure if this will help, but can you please try:
<context-param> <param-name>org.richfaces.LoadScriptStrategy</param-name> <param-value>NONE</param-value> </context-param>
? -
14. Re: DataScroller not working with IE7 - using Richfaces 3.2.
rashok11 Sep 9, 2009 9:29 AM (in response to rashok11)I tried changing the loadScriptStrategy, and it didn't help. I still have the same Richfaces is undefined script error.