-
2. Re: strange JS errors with rich:scrollableDataTable
merlin-hst Jan 22, 2009 9:41 AM (in response to merlin-hst)Ok, I didn't know it ;)
Just for you to know, I have that problem also with even only one table.
Lothar -
3. Re: strange JS errors with rich:scrollableDataTable
konstantin.mishin Jan 22, 2009 11:02 AM (in response to merlin-hst)Check that tomahawk you using has latest version. Previous one uses older prototype than RF has - so there could be conflicts.
-
4. Re: strange JS errors with rich:scrollableDataTable
merlin-hst Jan 26, 2009 5:04 AM (in response to merlin-hst)No, the error occurs again. Even with the latest RichFaces nightly build (3.3.1-20090124.050832-11).
Lothar -
5. Re: strange JS errors with rich:scrollableDataTable
ilya_shaikovsky Jan 26, 2009 5:18 AM (in response to merlin-hst)If you able to provide sample - feel free to rise jira issues with such attachment.
b.t.w. you sure that got my point? I've talked about prototype latest version (in tomahawk) not about RF build. -
6. Re: strange JS errors with rich:scrollableDataTable
merlin-hst Jan 26, 2009 7:50 AM (in response to merlin-hst)Yes, I've tried it with the latest tomahawk version (1.1.8) AND also with latest RF build because of that post: http://jboss.com/index.html?module=bb&op=viewtopic&t=149272
Lothar -
7. Re: strange JS errors with rich:scrollableDataTable
vannekawa Jan 28, 2009 8:05 AM (in response to merlin-hst)I have exactly the same problem!
I use only one rich:scrollableDataTable with Richfaces V 3.3.0
Firefox looks pretty and IE displays an error in line 30 : style is null or no object.
The Header of the table is not visible because it's height is zero! The width's of the coulumns is much too short, because something with the styles wen't wrong (well, that is just what the error message said).<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> <jsp:root xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" xmlns:bm="http://bmiag.de/gear/jsf/tags" xmlns:c="http://java.sun.com/jstl/core" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" > <ui:composition> <a4j:loadStyle src="../views/searchUsers/SearchUsers.css" /> <h:messages globalOnly="true" /> <rich:scrollableDataTable styleClass="suchTabelle #{form.userTable.styleBinding} #{tableclass}" binding="#{form.userTable.binding}" value="#{form.userTable.model}" id="#{form.userTable.id}" height="150px" selection="#{form.userTable.model.selection}" /> </ui:composition> </jsp:root>
Any further ideas? -
8. Re: strange JS errors with rich:scrollableDataTable
konstantin.mishin Jan 28, 2009 10:08 AM (in response to merlin-hst)I cannot reproduce this problem. You might create issue in our jira and attach war (or maven2 project better) with this problem.
-
9. Re: strange JS errors with rich:scrollableDataTable
vannekawa Feb 10, 2009 8:37 AM (in response to merlin-hst)Sorry I can't build a war file (I tried to build one with seam but it worked !).
Now I debugged the JavaScript and found a problem:
the Method Utils.getRule( in common-scrollable-data-table.jsUtils.getRule = function (className) { var rule = null; var sheets = document.styleSheets; for (var j = 0; !rule && j < sheets.length; j++) { var rules = sheets[j].cssRules ? sheets[j].cssRules: sheets[j].rules; for (var i = 0; !rule && i < rules.length; i++) { if (rules.selectorText.toLowerCase() == (className.toLowerCase())) { rule = rules; } } } return rule; };
iterates over all foud css scripts, every style class is comapred with the table style just to replace the ":" by an "_" in the stylesheet which was inserted before the table.
This is the reason why the IE runs so slowly!
At the end the IE isn't able to compute so many items and throws the exception and returns the style null! (i used a lot of style sheets with many classes - I counted 225!) -
12. Re: strange JS errors with rich:scrollableDataTable
rvadrevu Sep 29, 2010 9:52 PM (in response to konstantin.mishin)Hi Mishin,
is the java script issue 'style' is null or not an object with rich:scrollableDataTable in IE 6 resolved in richfaces version 3.3.3 Final ?