-
1. Re:
konstantin.mishin Nov 17, 2008 7:36 AM (in response to gmacmullin)This problem related with Internet Explorer.
It doesn't evaluate any more than 30 style elements. -
2. Re:
gmacmullin Nov 18, 2008 9:19 AM (in response to gmacmullin)Is it possible for richfaces to externalize these styles in a style sheet file?
-
3. Re:
gmacmullin Nov 20, 2008 5:27 PM (in response to gmacmullin)So it looks like it is an IE problem, where it can only load 30 style tags or style sheet links. I think this is a problem for anyone creating a large page (i.e. a page with lots of richfaces components).
To get around this problem, I've create a custom renderer for the ScrollableDataTable, that overrides the renderStyle() method - it now stores the contents of the style tags in a buffer, that is rendered in a JSP. So now my template includes a link to the generated CSS JSP containing the styles generated by each scrollable data table.
So that fixed my original javascript errors, now I have new ones. In IE 6, and sometimes IE 7 (don't know why it sometimes seems to work). Now, when I load the page, no javascript errors occur. When I open a modal dialog panel containing a scrollableDataTable, I get an "Line 1036. Unspecified error." when I try I add an item into an empty scrollableDataTable.
Using the Microsoft Script Debugger, I tracked the problem down to line 232 in GridBody.js:
this.scrollBox.element.scrollTop = scrollTop;
It appears that this.scrollBox.element.scrollTop has not been defined, and when an assignment is attempted, it throws the above error.
Is this a problem with the javascript or that it's an empty scrollableDataTable? Does anyone have any ideas?
Thanks,
Glen -