Re: IE8 Stylesheet Limit Workaround (invalid argument number: -2147024809)

2011-12-09 Thread Thomas Broyer
UiBinder's ui:style generate CssResources and automatically calls 
ensureInjected() on them. CssResource#ensureInjected() takes care of the 
stylesheet limit in IE by appending to the last style element instead of 
adding a new one, so I doubt this is your problem.
Isn't IE also having a limit on the number of rules within stylesheets?
Or it might be something else entirely that's causing the error.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/97juWwGqcowJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: IE8 Stylesheet Limit Workaround (invalid argument number: -2147024809)

2011-12-09 Thread melody
Thanks Thomas. I just thought I will add to the details of the error
by adding the stack trace that is produced when I run the code in Dev
Mode. Below:

com.google.gwt.core.client.JavaScriptException: (TypeError):
$doc.createStyleSheet is not a function
com.google.gwt.core.client.JavaScriptException: (TypeError):
$doc.createStyleSheet is not a function
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.dom.client.StyleInjector
$StyleInjectorImplIE.createElement(StyleInjector.java)
at com.google.gwt.dom.client.StyleInjector
$StyleInjectorImplIE.createElement(StyleInjector.java)
at com.google.gwt.dom.client.StyleInjector
$StyleInjectorImplIE.createNewStyleSheet(StyleInjector.java:186)
at com.google.gwt.dom.client.StyleInjector
$StyleInjectorImplIE.injectStyleSheet(StyleInjector.java:118)
at
com.google.gwt.dom.client.StyleInjector.flush(StyleInjector.java:362)
at com.google.gwt.dom.client.StyleInjector.access
$1(StyleInjector.java:347)
at com.google.gwt.dom.client.StyleInjector
$1.execute(StyleInjector.java:199)
at com.google.gwt.core.client.impl.SchedulerImpl$Task
$.executeScheduled$(SchedulerImpl.java:50)
at
com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:
229)
at
com.google.gwt.core.client.impl.SchedulerImpl.flushFinallyCommands(SchedulerImpl.java:
328)
at com.google.gwt.core.client.impl.Impl.exit(Impl.java:238)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:409)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
193)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:662)
com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
167)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
281)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
531)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:662)
com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at 

IE8 Stylesheet Limit Workaround (invalid argument number: -2147024809)

2011-12-08 Thread melody
I have an application that has 96+- CSS files that are part of the
UIBInder xml files. Recently I just noticed that when I open my
application in IE8 and IE9 it throws a javascript error : Invalid
argument. number : -2147024809.

I then read an articcle that mentioned that IE8 has a hard limit on
the number of stylesheets you can have in your page of 30
stylesheets.

Is there any way to get around this limit without losing the benefit
of granular style sheets brought about by UIBinder?

Thanks,

Melody

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.